Spring和mybatis整合时报出的错误
来源:互联网 发布:iface102下载数据 编辑:程序博客网 时间:2024/05/20 19:47
错误:
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.apache.ibatis.session.defaults.DefaultSqlSessionFactory' to required type 'java.lang.String' for property 'sqlSessionFactoryBeanName'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] to required type [java.lang.String] for property 'sqlSessionFactoryBeanName': no matching editors or conversion strategy found
出现错误的原因:
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<!-- 会话工厂 -->
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactoryBean"/>
上面property中value修改为了ref,就会报出错误,正确的写法应该是使用value属性
- Spring和mybatis整合时报出的错误
- spring整合hibernate时报的错误
- Spring整合Mybatis错误
- spring 和 mybatis 的整合
- Mybatis 和 Spring 的整合
- Spring和Mybatis的整合
- Mybatis和Spring的整合
- Mybatis和spring的整合
- mybatis和Spring的整合
- spring和mybatis的整合
- Mybatis和Spring的整合
- 整合 Spring mvc mybatis 的错误
- spring整合mybatis时遇到的错误
- ssh整合时报的错误
- Mybatis和Spring整合
- mybatis和spring整合
- spring和mybatis整合
- Spring和MyBatis整合
- hdu 5294 最短路+最大流
- 源码--文件上传
- 蛇形巨阵
- Xcode 7 Unknow type name
- Java序列化与反序列化
- Spring和mybatis整合时报出的错误
- stm32上NRF24L01无法通信的问题。。
- Hilbert R树发展
- InSAR学习(六)形变监测结果的可视化方法
- Linux上ln命令详细说明及软链接和硬链接的区别
- 安卓绘制视图的流程
- 【POJ1364】King
- js实现图片放大镜效果
- 重装系统数据恢复工具