xmlns:p="http://www.springframework.org/schema/p"
xmlns:c="http://www.springframework.org/schema/c"
<bean id="user" class="com.li.pojo.User" p:name="小白" p:helloSpring-ref="helloSpring" p:list="[sd,adf,sdf,swwwad,sd]"/>
<bean id="user1" class="com.li.pojo.User" c:_0="小黑" c:helloSpring-ref="helloSpring"/>
如上面所写,p命名空间是可以直接进行赋值的,c命名空间则是有下标和直接命名两种,因为c命名空间必须要求pojo要有有参的构造,不然这所谓的下表从哪来。