Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
来源:互联网 发布:江苏省高考报名端口 编辑:程序博客网 时间:2024/09/21 09:28
无法将你的datasource里配置的字符串转换成javax.sql.DataSource对象,导致SessionFactory无法完成,datasource配置肯定有误,检查[/WEB-INF/applicationContext.xml]文件中的datasource相关的配置。或者贴出来让大家看看。
<property name="dataSource" value="dataSource">
配置错了,这写法Spring会以字符串方式注入,报类型不匹配异常,改为
<property name="dataSource" ref="dataSource"/>
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- 配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
- Failed to convert property value of type [java.lang.String] to required type [boolean] for property
- Failed to convert property value of type 'java.lang.String' to required type 'int' for property
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for property
- Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for pr
- Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for pr
- Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for pr
- spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
- springmvc-- Failed to convert property value of type 'java.lang.String' to required type
- Failed to convert property value of type [java.lang.String] to required type [int]
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for propert
- 关于springMVC中:Failed to convert property value of type 'java.lang.String' to required type 'java.util
- spring mvc 数据绑定报错 Failed to convert property value of type 'java.lang.String' to required type 'int'
- 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- Failed to convert value of type 'java.lang.String' to required type 'org.springframework.web.multipa
- ATPCS【转自http://hi.baidu.com/cumtsun/blog/item/3307af1b909d361d8618bf82.html】
- 『管理调优』Oracle的event code说明
- 『管理调优』Oracle高级复制(eygle相关专题)
- 『Java』MyEclipse学习笔记
- .NET Compact Framework下的GPS NMEA data数据分析
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- [OpenGL]-----简介及快速起步(基于VisualC++)
- ASP.NET学习笔记
- Ping 编程
- liunx-gdb调试简要说明
- org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
- 严重: action: null java.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlugIn
- Active Directory 域帐号审计程序
- Microsoft VBScript 运行时错误代码大全