Ran*_*Lin 5 spring intellij-idea spring-roo spring-data
IntelliJ 12.1.6 Ultimate,启用了以下插件:
我有一个Spring Roo项目,它使用Spring Data存储库API.以下是代码段:
package my.package;
@RooJpaRepository(domainType = Thing.class)
public interface ThingRepository {
}
Run Code Online (Sandbox Code Playgroud)
privileged aspect ThingRepository_Roo_Jpa_Repository {
declare parents: ThingRepository extends JpaRepository<Thing, Long>;
declare parents: ThingRepository extends JpaSpecificationExecutor<Thing>;
declare @type: ThingRepository: @Repository;
}
Run Code Online (Sandbox Code Playgroud)
<repositories base-package="my.package" />
Run Code Online (Sandbox Code Playgroud)
但是在xml文件中,IntelliJ告诉我

因此,每当我在IntelliJ中使用find/save之类的方法时,它将被标记为"无法解析方法"

但是,IntelliJ和Maven都编译没有任何问题,只是在编辑器中无法解析的方法.可能是什么问题呢?
坏消息,我认为您必须等待该功能。看看这个:
http://youtrack.jetbrains.com/issue/IDEA-59138
简而言之:现在 Intellij 不支持 AspectJ 声明父母也不声明优先级
自 Intellij 11 以来,Intellij 开发人员一直在尝试此功能(请参阅有关“没有技术障碍,只是缺乏资源”的评论)
该问题被标记为在 Intellij 14 上得到解决。需要多长时间?看到Intellij 13.1计划在2014年Q2发布,所以还需要一段时间。
| 归档时间: |
|
| 查看次数: |
698 次 |
| 最近记录: |