ssm整合事物的时候,事物没有生效,不能回滚,需要在配置springMVC配置文件的时候,
<!-- 扫描 @Controller --> 取消扫描service
<context:component-scan base-package="com.tongtong"><context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
</context:component-scan>