Spring包导入错误

The hierarchy of the type My_BeforeMethod_Advice is inconsistent

The type org.aopalliance.aop.Advice cannot be resolved. It is indirectly referenced from required .class files

出现上述错误是因为导入的Spring包版本错误。

解决方法:把Spring 3.x换成Spring 2.x就可以了。

你可能感兴趣的:(spring,hierarchy)