org.springframework.beans.factory.BeanCreationException: Error creating bean wit
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
很是郁闷,既然提示我dataSource配置错误.....
搞了半天,终于解决..原来是transaction 的问题
<aop:config>
<aop:advisor pointcut="execution(public * *(..))" advice-ref="txAdvice"/>
</aop:config>
pointcut配置为 全匹配就为出行上面的异常.....
我做一下修改就ok了:
<aop:config>
<aop:advisor pointcut="execution(public * com.li.service.*.*(..))" advice-ref="txAdvice"/>
</aop:config>