关于The hierarchy of the type TestBeforeAdvice is inconsistent的问题

今天准备写一个spring aop的demo,创建了TestBeforeAdvice类,该类实现了MethodBeforeAdvice接口,eclipse报了"The hierarchy of the type TestBeforeAdvice is inconsistent"的错误。

后百度找到原因:spring-aop.jar要依赖aopalliance.jar,所以需要导入aopalliance.jar。

以后碰到该问题,可考虑是否有依赖的jar未到入。

posted @   孤剑者  阅读(427)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示