The hierarchy of the type MyBefore is inconsistent:MyAfter类型的层次结构不一致 报错原因:MethodBeforeAdvice所在的jar包没有被引入 少了这两个包,导进去即可