<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.springframework.org/schema/beans" xmlns:p="http://www.springframework.org/schema/p"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
    <bean id="saxophone" class="com.stono.sprtest.Saxophone"></bean>
    <bean id="duke" class="com.stono.sprtest.Duke" p:name="Elvis">
        <property name="instrument">
            <null />
        </property>
        <property name="age">
            <value>123</value>
        </property>
    </bean>
</beans>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-08-21
  • 2022-01-25
  • 2021-12-12
  • 2021-05-22
猜你喜欢
  • 2021-05-26
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案