错误 The type com.jiuqi.dna.ui.language.INLStringGroup cannot be resolved. It is indirectly referenced from required .class files 原因一 在继承(extends)/实现(implements) 的某个 类/接口 中,这个类/接口所依赖的其他jar,在本类中不能依赖或者引用. 举例:Class A 继承(extends) Class B ,在Class B中导入了com.j…
The hierarchy of the type is inconsistent 解释为:层次结构的类型不一致 由于我在eclipse里建了两个JAVA PROJECT项目,分别是A projiect和B projiect,项目A引用了一些JAR包,然后项目B引用了项目A,但是B没有引用A的JAR包,就出现了这个问题了 结果在B项目里引用A项目的JAR包就OK了.…
今天准备写一个spring aop的demo,创建了TestBeforeAdvice类,该类实现了MethodBeforeAdvice接口,eclipse报了"The hierarchy of the type TestBeforeAdvice is inconsistent"的错误. 后百度找到原因:spring-aop.jar要依赖aopalliance.jar,所以需要导入aopalliance.jar. 以后碰到该问题,可考虑是否有依赖的jar未到入.…
1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响.但红色的错误提示在有些有强迫症的程序员眼里,多多少少有些不太舒服. 2. 原因 spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误.常见于mybatis的mapper,如下: <!-- mapper scanne…
在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响. 原因在于spring auto scan配置.在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误.常见于mybatis的mapper.只要修改工程的配置即可,如下图所示:…
本文转自:http://blog.csdn.net/u012453843/article/details/54906905 1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响.但红色的错误提示在有些有强迫症的程序员眼里,多多少少有些不太舒服. 2. 原因 原因可能有两个,第一个是IntellijIDEA本身…