解决The hierarchy of the type is inconsistent错误

可能的原因:自己的类继承于某个类,这个类或者这个类继承的类或者再往上继承的某个类所在的jar包没有被引入。

比如:使用SpringAOP时,假设须要继承MethodBeforeAdviceAfterReturningAdvice类。除了引入Springjar包时,还须要引入org.aopalliance.aopjar包,由于Advice类是这个包里面的,否则在编写Java代码时会报错。

原文地址:https://www.cnblogs.com/yfceshi/p/6955140.html