我有一个使用Spring Roo生成的Spring - JPA项目。现在为了一些要求,我们用一些不符合JPA的其他框架(MyBatis)替换我们的JPA层。我已经做了改变,他们工作也很好。我从我的pom.xml文件中删除了所有JPA依赖项。在将JPA项目转换为非JPA项目时面临Spring Roo问题
我面临的问题与我的JUnit测试项目,用于测试DAO层。 Spring Roo正在寻找属于JPA特定jar的javax.persistence.Entity
类。
请在下面找到以下错误信息:
can't determine annotations of missing type javax.persistence.Entity
when weaving type ****.**.***Test
when weaving classes
when weaving
when batch building BuildConfig[null] #Files=12 AopXmls=#0
[Xlint:cantFindType]
error at (no source information available
谁能请告诉我如何消除这种误差不添加JPA依赖?
是出现在Spring Roo的外壳这个错误? – jcgarcia