解决The hierarchy of the type is inconsistent错误

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

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

posted @ 2017-06-07 08:36  yfceshi  阅读(1685)  评论(0编辑  收藏  举报