第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Spring為什么不能注入TreeSet?

Spring為什么不能注入TreeSet?

菠蘿1230 2017-08-03 14:51:26
八月 03, 2017 2:50:16 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@2ff5659e: startup date [Thu Aug 03 14:50:15 CST 2017]; root of context hierarchy八月 03, 2017 2:50:16 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions信息: Loading XML bean definitions from class path resource [beans_jihe.xml]八月 03, 2017 2:50:16 下午 org.springframework.context.support.ClassPathXmlApplicationContext refresh警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'javaCollection' defined in class path resource [beans_jihe.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.LinkedHashSet' to required type 'java.util.TreeSet' for property 'addressSet'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.util.LinkedHashSet' to required type 'java.util.TreeSet' for property 'addressSet': no matching editors or conversion strategy found
查看完整描述

2 回答

已采納
?
按照自己的節(jié)奏前行

TA貢獻(xiàn)90條經(jīng)驗(yàn) 獲得超70個(gè)贊

nested?exception?is?org.springframework.beans.ConversionNotSupportedException:?Failed?to?convert?property?value?of?type?'java.util.LinkedHashSet'?to?required?type?'java.util.TreeSet'?for?property?'addressSet'
//看這一句,類(lèi)型轉(zhuǎn)化不支持,應(yīng)該是使用<set></set>的時(shí)候默認(rèn)尋找的LinkedHashSet,或許spring?本身不支持
//或許標(biāo)簽不對(duì)


查看完整回答
1 反對(duì) 回復(fù) 2017-08-04
  • 2 回答
  • 0 關(guān)注
  • 1950 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)