异常记录---Error creating bean with name 'sqlSessionFactory

标签: spring
2人阅读 评论(0) 收藏 举报
分类:
Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-dao.xml]: Error 
setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested 
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested 
exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy

在maven工程下  Junit测试  dao 层报错,  原因是缺少spring-jdbc  jar包

引入依赖即可

                <dependency>
		    <groupId>org.springframework</groupId>
		    <artifactId>spring-jdbc</artifactId>
		    <version>4.3.7.RELEASE</version>
		</dependency>




查看评论

SSM整合报错:Error creating bean with name 'sqlSessionFactory' defined in file...

搭建SSM,遇到错误如下: 警告: Exception encountered during context initialization - cancelling refresh attempt ...
  • sheng_Mu555
  • sheng_Mu555
  • 2018-01-05 18:01:51
  • 476

Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource

mybatis中报Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource解决方案 错误...
  • gucapg
  • gucapg
  • 2013-11-24 12:31:43
  • 7575

Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext

Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext...
  • zhenwodefengcaii
  • zhenwodefengcaii
  • 2017-01-24 11:22:36
  • 1756

Spring ...BeanCreationException: Error creating bean with name 'sqlSessionFactoryWrite'

Running Jetty 6.1.26 2014-04-07 22:49:50.933:INFO::Logging to STDERR via org.mortbay.log.StdErrLog ...
  • gjswxhb
  • gjswxhb
  • 2014-04-08 22:23:15
  • 6506

错误记录(五)Error creating bean with name 'sessionFactory' defined in file

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating b...
  • weixin_36380516
  • weixin_36380516
  • 2017-02-18 11:04:07
  • 4924

ssm出现Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/applic

在学习ssm项目整合框架的时候出现了“Error creating bean with name 'sqlSessionFactory' defined in class path resource ...
  • MonkeyBrothers
  • MonkeyBrothers
  • 2018-02-21 16:59:28
  • 167

Error creating bean with name 'sqlSessionFactory' defined in class path resource

今天做mybatis与spring整合的时候报了一个错误,如下 Caused by: org.springframework.beans.factory.BeanCreationException:...
  • csdnZCjava
  • csdnZCjava
  • 2017-07-04 12:39:04
  • 5129

BeanCreationException:Error creating bean with name 'sessionFactory' defined in file ...

错误内容如上,外加一个Errors in named queries; 一开始看的错误,老认为是配置文件...
  • bao19901210
  • bao19901210
  • 2014-05-26 18:55:32
  • 16453

PageHelper报错Error creating bean with name sqlSessionFactory defined in class path resource

最近在做一个项目,项目地址: https://github.com/wangyuanjun008/wyj-parent.git 在项目中使用mybatis的分页插件:PageHelper,整合spr...
  • wangyuanjun008
  • wangyuanjun008
  • 2018-01-23 13:48:10
  • 286
    个人资料
    持之以恒
    等级:
    访问量: 1065
    积分: 181
    排名: 103万+
    文章分类
    文章存档