You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
819 B

2 years ago
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--id: bean的名字 class: 类的路径-->
<bean id="user_1" class="cc.bnblogs.demo.User">
<property name="id" value="0" />
<property name="username" value="user"/>
</bean>
<bean id="user" class="cc.bnblogs.demo.User">
<constructor-arg index="0" name="id" type="java.lang.Integer" value="1"/>
<constructor-arg index="1" name="username" type="java.lang.String" value="admin"/>
<property name="username">
<null />
</property>
</bean>
</beans>