记错:配置事物出现了错误,查看了网上的方法在web.xml中添加一些也无果,最后发现是,aop事物管理的路径配置写错了,
<aop:config>
<aop:pointcut expression="execution(* com.abc.abcService..*.*(..))" id="mypointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="mypointcut" />
</aop:config>
切记符合自己的包名类名。