Spring transactions - this mode is applied when both are specified in the config

I was trying to debug a legacy code issue and accidentally realized that the spring config file configures the transaction manager in both aspect and proxy mode.

<tx:annotation-driven transaction-manager="txManager" proxy-target-class="true"/>
<tx:annotation-driven transaction-manager="txManager" mode="aspectj"/>

      

These configurations are located in different xml files. Which mode will the application choose? Does it depend on the ordering, or is there one mode that overrides the other? Thank!

+3
java spring transactions


source to share


No one has answered this question yet

Check out similar questions:

6
Does Spring @transaction work on concrete method of abstract class
five
Spring @Transactional applies both dynamic Jdk proxy and aspect aspect
4
Spring Failed to open transaction on service
3
Java configuration for jdbctemplate and transaction management in spring
3
spring tx: annotation dependent ignore mode when at boot time at boot time
2
Spring best practices: Proxying mechanism vs @Transactional by class or interface
2
Summary annotation with transactions with two transaction managers
1
Spring-switched transaction isolation mode
0
Spring Transaction Platform Design Principle 3
0
Spring Spring Configuration and Distribution Request



All Articles
Loading...
X
Show
Funny
Dev
Pics