![]() |
1
1
你用的注解太多了。当您使用无状态注释bean时,默认事务将是CONTAINER,并且需要默认TransactionAttribute,因此您不需要这两个注释。另外,还可以用@service注释bean。但不能将bean定义为Spring管理的bean和EJB3会话。 https://docs.spring.io/spring/docs/4.3.20.RELEASE/javadoc-api/org/springframework/ejb/interceptor/SpringBeanAutowiringInterceptor.html 说:
您也不需要事务性注释。
在WebLogic的JNDI树中可以看到java:global。但是可以使用其他名称空间进行查找。这取决于查找的bean的位置(应用程序和模块)和正在查找的bean的位置。如果你有任何问题,请检查你的豆子的位置。你可以看看 javax.naming.NameNotFoundException: While trying to lookup 'abc' didn't find subcontext 'abc' 更多信息。 |
![]() |
Innet · QuartzJob中的EntityManager为空 7 年前 |
![]() |
Lakshmi · 在Jdeveloper 12c中创建空表单 7 年前 |
|
Tbuddy · 从web开始。xml到Spring Boot 7 年前 |