码迷,mamicode.com
首页 > 其他好文 > 详细

The hierarchy of the type is inconsistent错误问题

时间:2016-08-29 01:41:59      阅读:180      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!