java - Spring transactions - which mode is applied when both are specified in config -


i trying debug issue legacy code, , chanced upon fact spring configuration file configures transaction manager in both aspectj , in proxy mode.

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

these configs in different xml files. mode picked application? depend on ordering, or there notion of 1 mode overriding other? thanks!


Comments