解决myeclipse报错Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJ

本篇文章是一种常规的解决方式,对于新手,以做参考,顺便记录成长历程。

报错的全部信息为:Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)

我所出现的问题原因是:没有安装AspectJ插件,将项目转换成AspectJ项目。

具体的解决方式是下载AspectJ插件,解压文件后将文件放在MyEclipse 2015安装目录的dropins文件夹下,重启工具,点击项目右键

AspectJ Tools 选择Configure AspectJ Build Path ; 在弹出框中选择Aspect Path -->Add  JARs,选择项目中的spring-aspects-xxx.RELEASE.jar架包导入即可,有的项目会自动更新成 AspectJ 项目,有的项目需要手动更新。

猜你喜欢

转载自blog.csdn.net/misstang1996/article/details/80775107