applicationContext.xml中配置了BeanNameAutoProxyCreator,如下
bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
*Action
beforeAdvice
afterAdvice
exceptionAdvice
但是啟動工程為什麼會報dataSource的錯
rror creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.AbstractMethodError: org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator.determineConstructor(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Constructor;
Caused by: java.lang.AbstractMethodError: org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator.determineConstructor(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Constructor;
這個
首先檢查一下數據源是否配置的用戶和密碼是否正確
其次根據嘗試用不同中連接數據源的方式試一下,如JNDI,C3P0,根據自己的jar配置連接數據源的方式。