@Test public void testQueryUser() { userService.queryUserById(1); userService.queryUserById(1); }
@Transactional(propagation = Propagation.REQUIRES_NEW) public User queryUserById(long id) { return userDao.getUser(id); }
UserService { @Transactional(propagation = Propagation.REQUIRES_NEW) public User queryUserById(long id) { return userDao.getUser(id); } }
UserService { @Transactional(propagation = Propagation.REQUIRES_NEW) public User queryUserById(long id) { return userDao.getUser(id); }  }
UserService { @Transactional(propagation = Propagation.REQUIRES_NEW) public User queryUserById(long id) { return userDao.getUser(id); }  User getUserById(long id); void insert(User user); @Transactional(propagation = Propagation.REQUIRED) void insert2(User user); @Transactional(propagation = Propagation.REQUIRES_NEW) User queryUserById(long id); List<User> queryByName(String nameLike); }
UserService { @Transactional(propagation = Propagation.REQUIRES_NEW) public User queryUserById(long id) { return userDao.getUser(id); }  User getUserById(long id); void insert(User user); @Transactional(propagation = Propagation.REQUIRED) void insert2(User user); @Transactional(propagation = Propagation.REQUIRES_NEW) User queryUserById(long id); List<User> queryByName(String nameLike);  }