最近學習spring,看尚學堂的視屏在做AOP的一個demo調試時發現報
在網上收了下,發現是spring的版本與java的版本不一致的原因。因此自己重新下了spring的包,運行通過。
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager' defined in class path resource [applicationContext-bean.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut allAddMethod
在網上收了下,發現是spring的版本與java的版本不一致的原因。因此自己重新下了spring的包,運行通過。