首页 > 其他 > 详细

The hierarchy of the type is inconsistent错误问题

时间:2016-08-29 01:38:58      阅读:149      评论:0      收藏:0      [点我收藏+]

在springMVC的AOP 面向切面编程中,引用:

package com.ah.aop;

import java.lang.reflect.Method;

import org.springframework.aop.MethodBeforeAdvice;

public class MyMethodBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method arg0, Object[] arg1, Object arg2)
            throws Throwable {
        // TODO Auto-generated method stub

    }

};

在实现前置通知接口MethodBeforeAdvice时候,出现The hierarchy of the type is inconsistent  解释为:层次结构的类型不一致;

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

The hierarchy of the type is inconsistent错误问题

原文:http://www.cnblogs.com/navyhj/p/5816376.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!