配置文件
xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd"
default-lazy-init="true" default-init-method="init"
default-destroy-method="destroy">
<!-- 使用构造器 -->
<bean id="caleadar" class="java.util.GregorianCalendar"></bean>
<!-- 使用静态工厂方法 -->
<bean id="c2" class="java.util.Calendar" factory-method="getInstance"></bean><!--
<bean id="c3" class="java.util.GregorianCalendar">
<bean id="cc3" factory-bean="c3" factory-method="getTime"></bean>
</bean>
-->
<bean id="calendarObj3" class="java.util.GregorianCalendar"></bean>
<bean id="cc4" factory-bean="calendarObj3" factory-method="getTime">
</bean>
<bean id="exampleBean" class="com.baosight.bean.ExampleBean"></bean>
</beans>