|
@@ -10,9 +10,48 @@
|
|
|
<!-- <property name="username" value="${jdbc.username}" />-->
|
|
|
<!-- <property name="password" value="${jdbc.password}" />-->
|
|
|
<!-- </bean>-->
|
|
|
- <bean id="testBase" class="org.starter.learning.test.TestBaseImpl2">
|
|
|
- <property name="username" value="${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" />
|
|
|
</beans>
|