Most_important
作者:互联网
Xml中,不能用逗号分隔,一般是用空格!!
正确:
<bean id="user2" class="wqh.bean.User">
<constructor-arg name="name" value="user-ok" />
<property name="name" value="User 2 " />
</bean>
错误:
<constructor-arg name="name" , value="user-ok" />
注意: constructor-arg name="paraname", paraname是参数名字,不能随意写错!!
toString 和 String.ValueOf() , (String)
obj.toString()是在Object中定义的,obj不能为null
String.ValueOf(null) => "null"
标签:obj,String,ValueOf,Most,important,toString,null,paraname 来源: https://www.cnblogs.com/wqheng/p/15863776.html