Spring: Error Cannot convert value of type [$Proxy...] to required type
来源:互联网 发布:淘宝凯文先生鼓谱 编辑:程序博客网 时间:2024/05/22 05:08
来源:http://www.bitsandpix.com/entry/spring-error-cannot-convert-value-of-type-proxy-to-required-type
In Spring, if you get an error like:
Error Cannot convert value of type [$Proxy...] to required type
It might be because you are using Spring AOP (e.g., @transactional annotations) with “interface-proxy” mode (the Default) rather than “class-proxy” mode. To setup “class-proxy” do the following:
- Copy aspectjweaver.jar and aspectjrt.jar to your Web application classpath (you can find these files in the Spring Distribution/lib/aspectj
- Add the following in the your app context xml:<aop:config proxy-target-class=”true”/>
See also:
- Spring Forum: Spring Proxy exception
- Spring: Error Cannot convert value of type [$Proxy...] to required type
- Spring-aop: Error Cannot convert value of type [$Proxy...] to required type
- 配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for property
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for propert
- spring 事务异常Failed to convert property value of type [$Proxy12] to required type
- spring Failed to convert property value of type [$Proxy10] to required type
- spring启动报错:Cannot convert value of type [org.apache.commons.collections.map.LinkedMap] to required t
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- 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'
- mybatis 5.0 报错 Cannot convert value of type ‘com.github.pagehelper.PageHelper’ to required type ‘org
- spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
- spring mvc 数据绑定报错 Failed to convert property value of type 'java.lang.String' to required type 'int'
- Failed to convert property value of type [$Proxy13] to required type
- Failed to convert property value of type [java.lang.String] to required type [boolean] for property
- SSH 项目异常:Failed to convert property value of type [$Proxy13] to required type
- Failed to convert value of type 'java.lang.String' to required type 'org.springframework.web.multipa
- 以前没搞清楚的java知识点
- 给Eclipse分配更多的内存
- RoboCup笔记World Model之二
- HTML 文字样式标记
- hibernate中配置非主键关联(单向一对多)
- Spring: Error Cannot convert value of type [$Proxy...] to required type
- WebService 工程
- VS 快捷键
- HTML 列表标记
- 央视连续曝光谷歌中国传播色情和低俗信息
- Delivering Successful Projects with TSP(SM) and Six Sigma: A Practical Guide to Implementing Team So
- 央视为什么要剑指谷歌
- JAVA视频教程提供下载
- 东软集团董事长:经济危机暴露中国软件业软肋