SpringAOP异常:org.springframework.aop.aspectj.AspectJExpressionPointcut cannot be cast to com.....

Exception in thread "main" java.lang.ClassCastException: org.springframework.aop.aspectj.AspectJExpressionPointcut cannot be cast to com.bjsxt.serviceImpl.HelloPointCut
    at com.bjsxt.test.Test1.main(Test1.java:28)

Check applicationContext.xml profile, arranged in the original configuration and bean cut tangent point tangent point with the same id, any change to a

Guess you like

Origin www.cnblogs.com/zhangmaoyang/p/11488208.html