|
@@ -1,70 +0,0 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
|
|
- <beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xmlns:context="http://www.springframework.org/schema/context"
|
|
|
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd ">
|
|
|
- <context:property-placeholder location="jdbc.properties" system-properties-mode="NEVER" />
|
|
|
-<!-- <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">-->
|
|
|
-<!-- <property name="driverClassName" value="${jdbc.driver}" />-->
|
|
|
-<!-- <property name="url" value="${jdbc.url}" />-->
|
|
|
-<!-- <property name="username" value="${jdbc.username}" />-->
|
|
|
-<!-- <property name="password" value="${jdbc.password}" />-->
|
|
|
-<!-- </bean>-->
|
|
|
-<!-- <bean id="testBaseOld" class="org.starter.learning.test.TestBaseImpl2">-->
|
|
|
-<!-- <property name="username" value="${jdbc.username}" />-->
|
|
|
-<!-- <property name="password" value="${jdbc.password}" />-->
|
|
|
-<!-- </bean>-->
|
|
|
-
|
|
|
- <bean id="testBase" class="org.starter.learning.test.TestBaseImpl" >
|
|
|
- <property name="array">
|
|
|
- <array>
|
|
|
- <value>100</value>
|
|
|
- <value>200</value>
|
|
|
- <value>300</value>
|
|
|
- </array>
|
|
|
- </property>
|
|
|
- <property name="list">
|
|
|
- <list>
|
|
|
- <value>string1</value>
|
|
|
- <value>string2</value>
|
|
|
- <value>string3</value>
|
|
|
- </list>
|
|
|
- </property>
|
|
|
- <property name="set">
|
|
|
- <set>
|
|
|
- <value>value1</value>
|
|
|
- <value>value2</value>
|
|
|
- <value>value2</value>
|
|
|
- <value>value3</value>
|
|
|
- </set>
|
|
|
- </property>
|
|
|
- <property name="map">
|
|
|
- <map>
|
|
|
- <entry key="country" value="China" />
|
|
|
- <entry key="province" value="Shanxi" />
|
|
|
- <entry key="city" value="Datong" />
|
|
|
- </map>
|
|
|
- </property>
|
|
|
- <property name="properties">
|
|
|
- <props>
|
|
|
- <prop key="country" >China</prop>
|
|
|
- <prop key="province">ShanXi</prop>
|
|
|
- <prop key="city">Datong</prop>
|
|
|
- </props>
|
|
|
- </property>
|
|
|
- </bean>
|
|
|
- <bean id="bookDao" class="org.starter.learning.dao.impl.BookDaoImpl" lazy-init="true" />
|
|
|
- <bean id="bookService" class="org.starter.learning.service.impl.BookServiceImpl" >
|
|
|
- <constructor-arg name="bookDao" ref="bookDao" />
|
|
|
- <constructor-arg name="version" value="3" />
|
|
|
- <constructor-arg type="java.lang.String" index="3" value="WARN" />
|
|
|
- <property name="bookDao" ref="bookDao" />
|
|
|
- <property name="msg" value="WARN" />
|
|
|
- <property name="name" >
|
|
|
- <list>
|
|
|
- <value>ValueHere</value>
|
|
|
- <ref bean="testBase" />
|
|
|
- </list>
|
|
|
- </property>
|
|
|
- </bean>
|
|
|
-</beans>
|