好大滴坑, Spring MVC覆盖了Trsaction
好大滴坑。 Spring MVC覆盖了Trsaction
解决方式:
<!-- package-scan 4 Spring MVC -->
<context:component-scan base-package="com.bingbang" use-default-filters="false">
<context:include-filter type="regex" expression=".*Controller"/>
</context:component-scan>
<!-- package-scan 4 Service -->
<context:component-scan base-package="com.bingbang" >
<context:exclude-filter type="regex" expression=".*Controller"/>
</context:component-scan>