Why are the transactions rolled back even when propagation=Propagation.REQUIRES_NEW in second method in Spring service class?
问题 Basic settings are all fine now and I started to try transactions. Struts+Spring+Hibernate annotation transaction manager. This is the sample code in Action, will call a service class: userService.addUser(); Here is the addUser() method in service class: @Transactional(value="deu" ) public void addUser() { userDao.addUser(); this.addUser2(); } First, I called addUser in userDao, which will insert a user. Second, I called addUser2 in another method in this service class. @Transactional(value=