当我尝试使用 Roo 创建的 JPA 对象时出现此错误。
Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)
我已经按照一些在线建议将 spring-aspects.jar 添加到 Eclipse 中的 aspectj 路径,但我仍然收到此错误。有谁知道如何解决这个问题?
我使用的环境是 Spring 3.0.5、Hibernate 3.6 和 JBoss 6.0.0.Final。
最佳答案
转到 STS ROO 控制台(右键单击 STS 中的项目,然后单击 Spring Tools,然后单击 Open Spring Roo)
输入提示 perform clean (将执行 Maven clean)
然后输入执行 eclipse
它应该工作!
关于Spring aspectj jar未正确配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4688549/