<?xml version=
<beans xmlns=
xmlns:xsi=
xsi:schemaLocation=
<bean id=
class=
<bean id=
class=
<bean id=
class=
</bean>
<bean id=
class=
<property name=
</bean>
<bean id=
class=
<bean id=
class=
<property name=
<property name=
<property name=
<map>
<entry key=
value
<entry key=
value
</map>
</property>
<property name=
<list>
<bean
class=
<constructor
<property name=
<list>
<value>eci:name=testBean</value>
<value>eci:name=manageBean</value>
</list>
</property>
<property name=
ref=
</bean>
</list>
</property>
</bean>
<bean id=
<bean id=
<property name=
</bean>
<bean id=
class=
<property name=
<!
<map>
<entry key=
<value>jmxremote
</entry>
<entry key=
<value>jmxremote
</entry>
</map>
</property>
</bean>
</beans>
針對environment設置
這是針對安全設置的
java文件讀入spring配置文件
Java 代碼
package server
import orgntext
public class ServerMain {
public static void main(String[] args) {
@SuppressWarnings(
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
while (true) {
try {
Thread
} catch (InterruptedException e) {
e
}
}
}
}
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28540.html