前端发起请求,后台不报错,但是数据库中没有数据,一个原因是前端请求的路径不在spring事务控制扫描的路径中:
<aop:config>
<aop:pointcut id="servicesPointcut"
expression="execution(* com.test.*.xxx..*.service.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="servicesPointcut" />
</aop:config>
请求的路径是business,而xxx配置成了biz,两者对应不上