阅读背景:

在Java 8默认接口方法上使用Spring @Transactional注释安全吗?

来源:互联网 

The Spring documentation recommends against putting @Transactional annotations on interface methods because interface annotations are not inherited by classes. However, with Java 8 we can provide a concrete default implementation in the interface. If such a default interface method needs to be the transactional boundary, we have no other choice: we have to put the @Transactional annotation on the interface method.The Spring documentation recommends against put




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: