新建类时Hibernate事务开启失败,但其它的没事。

给大家提供一个思路。

检查下自己的包是不是多创建了一层。

比如说在建立  server.c.impl正常使用

但server.c.d.impl就不行了。

容易被忽视的一点,可以排查一下。

 <aop:config expose-proxy="true">
        <aop:pointcut id="txPointcut" expression="execution(public * com.a.b.service.*.*.*(..))"/>
        <aop:advisor pointcut-ref="txPointcut" advice-ref="txAdvice"/>
    </aop:config>

 

posted on 2018-06-03 23:54  坚守信念  阅读(133)  评论(0编辑  收藏  举报

导航