`
deadcow
  • 浏览: 51690 次
  • 性别: Icon_minigender_1
  • 来自: JM&ZH&HK
社区版块
存档分类
最新评论

org.springframework.beans.TypeMismatchException: Failed to convert property valu

阅读更多

Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy60] to required type [your_classname] for property 'your_property_name'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy60] to required type [your_classname] for property 'your_property_name': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
... 62 more

 

 

root cause:spring will create a proxy for your defined bean what been AOP such transaction. then you should create interface for this class.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics