最近學習spring,看尚學堂的視屏在做AOP的一個demo調(diào)試時發(fā)現(xiàn)報
在網(wǎng)上收了下,發(fā)現(xiàn)是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
在網(wǎng)上收了下,發(fā)現(xiàn)是spring的版本與java的版本不一致的原因。因此自己重新下了spring的包,運行通過。