ITeye博客

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

prodream · 2010-01-24 18:45 · Spring · 企业架构 · Markdown

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)

暂无评论。

评论功能维护中,当前仅展示历史评论。