欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
spring注入null對象

In Spring, you can uses this special <null /> tag to pass a “null” value into constructor argument or property.

1. Constructor Argument

The wrong way to inject a null into constructor argument, a really common mistake, and nice try :)

  <bean id="defaultMongoTypeMapper1"	 class="org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper">	 <constructor-arg name="typeKey" value="null" />  </bean>

Correct way.

  <bean id="defaultMongoTypeMapper"	class="org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper">	<constructor-arg name="typeKey">		<null />	</constructor-arg>  </bean>

2. Property

The wrong way to inject null value into property.

  <bean id="myConverter"	class="com.mkyong.convert.MoneyConverter">	<property name="typeMapper" value="null" />  </bean>

Correct way.

  <bean id="myConverter"	class="com.mkyong.convert.MoneyConverter">	<property name="typeMapper"><null/></property>  </bean>
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
在EasyJWeb使用spring容器
spring security3 自定義過(guò)濾鏈
JMS & IBM MQ & Spring 簡(jiǎn)單使用說(shuō)明
Spring 整合redis集群 實(shí)現 以及過(guò)程中需要注意的問(wèn)題點(diǎn)
Spring Security(3.1.7) CAS Authentication
simple
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久