`
prodream
  • 浏览: 102161 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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>

 

 

0
2
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics