错误:Property of 'java.util.Set<?>' type cannot be injected by 'List'的解决方案
来源:互联网 发布:三方博弈矩阵 编辑:程序博客网 时间:2024/06/18 15:37
在自定义日期转换器的时候出现以下错误:
Property of 'java.util.Set<?>' type cannot be injected by 'List'
`
<bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <property name="converters"> <list list-class="java.util.ArrayList"> <!--如果使用<list>此处报错,Property of 'java.util.Set<?>' type cannot be injected by 'List'--> <bean class="com.shop.controller.converter.CustomDateConverter"/> </list> </property></bean>
`
改为
`
<bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <property name="converters"> <util:list list-class="java.util.ArrayList"> <bean class="com.shop.controller.converter.CustomDateConverter"/> </util:list> </property></bean>
`
即可
我的个人博客
阅读全文
0 0
- 错误:Property of 'java.util.Set<?>' type cannot be injected by 'List'的解决方案
- "List cannot be resolved to a type"错误的解决方法
- 错误:Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'
- 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'
- The value of the property 'type' cannot be parsed
- Jackson转换泛型List出现错误java.util.LinkedHashMap cannot be cast to com.xxx
- Jackson转换泛型List出现错误java.util.LinkedHashMap cannot be cast to com.xxx
- Could not determine type for: java.util.List, at table 项目启动报这种错误的解决方案(JPA)
- The type java.util.Map$Entry cannot be resolved.
- JDK8 - The type java.util.Map$Entry cannot be resolved
- The type java.util.Map$Entry cannot be resolved.
- java.util.ArrayList cannot be cast to entity.Type
- The type java.util.Map$Entry cannot be resolved. 问题解决
- The type java.util.concurrent.Flow$Publisher cannot be resolved
- The type java.util.Map$Entry cannot be resolved问题的解决
- Cannot set property ‘innerHTML’ of null 错误原因
- Uncaught TypeError: Cannot set property ' ' of null 错误解决
- linux高级网络配置基础team和网桥
- Python-基础学习笔记(六)
- Linux虚拟网络之tun(四)虚拟VPN
- HDOJ 2027 统计元音
- crontab
- 错误:Property of 'java.util.Set<?>' type cannot be injected by 'List'的解决方案
- Multiply Strings(大数相乘)
- Q107:Linux系统下GDB对PBRT-V3进行debug
- unity 鼠标悬停事件
- js创建型设计模式--简单工厂模式
- SmsManager发短信_随笔
- altium designer 13学习之添加泪滴
- RedHat、CentOS、Fedora 通过RPM安装MySQL 5.7.18版本 按照官网标准简易安装方法
- 使用指针连接字符串