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
source to share
No one has answered this question yet
Check out similar questions: