好大滴坑, 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>
posted @ 2015-12-25 11:59  mengfanrong  阅读(156)  评论(0编辑  收藏  举报