spring mcv包扫描和使用@Transactional的冲突

1.在spring-mvc.xml  

 

   <context:component-scan base-package="com.ckt.vas.backup.controller" />

 

2.在spring-service.xml

 

   <context:component-scan base-package="com.ckt.vas.backup">

<context:exclude-filter type="regex" expression=".*Controller$" />

   </context:component-scan>

 

3.在service对应的方法上加@Transactional

你可能感兴趣的:(transactional)