zoukankan      html  css  js  c++  java
  • Properties在xml中添加值

    <?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">
        <bean id="otherBean" class="cn.jiedada._03.OtherBean"/>
        <bean id="myBean" class="cn.jiedada._03.MyBean">
            <property name="id" value="18"></property>
            <property name="name" value="杰帅"></property>
            <property name="sex" value="true"></property>
            <property name="salary" value="800000"></property>
            <property name="list">
                <list>
                    <value>123</value>
                    <value>123</value>
                    <value>123</value>
                </list>
            </property>
            <property name="set">
                <set>
                    <value>123</value>
                    <value>123</value>
                    <value>123</value>
                </set>
            </property>
            <property name="arrays">
                <array>
                    <value>1</value>
                    <value>2</value>
                    <value>3</value>
                    <value>1</value>
                </array>
            </property>
            <property name="otherBeanList">
                <list>
                    <ref bean="otherBean"></ref>
                    <bean class="cn.jiedada._03.OtherBean"></bean>
                    <bean class="cn.jiedada._03.OtherBean"></bean>
                </list>
            </property>
            <property name="props1">
                <props>
                    <prop key="classDriver">com.sadsad</prop>
                    <prop key="root">root</prop>
                    <prop key="password">123456</prop>
                </props>
            </property>
        </bean>
    </beans>
  • 相关阅读:
    c++vector(入门级)
    端口扫描(TCP)
    推荐安全程序员的书单(系统、网络、安全等)
    My latest news(--2016.12.31)
    HTML+JS+DOM【选项卡自动切换】
    20170916考试总结
    [Usaco2014 Mar]Sabotage
    [SHOI2014]概率充电器
    [Usaco2010 Dec]Exercise 奶牛健美操
    [JZOJ4687]奇袭
  • 原文地址:https://www.cnblogs.com/xiaoruirui/p/11645621.html
Copyright © 2011-2022 走看看