码迷,mamicode.com
首页 > 编程语言 > 详细

spring的value,null标签

时间:2015-09-22 18:35:56      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

<?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>

 

spring的value,null标签

标签:

原文地址:http://www.cnblogs.com/stono/p/4829420.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!