YHRZB-conf.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <beans>
  4. <!-- Spring DAO Config -->
  5. <bean id="yhrzbDAO" class="com.ccgj.database.dao.impl.YHRZBDAOImpl">
  6. <property name="sessionFactory"><ref bean="sessionFactory"/></property>
  7. </bean>
  8. <!-- Spring Manager Config -->
  9. <bean id="yhrzbManager" class="com.ccgj.database.manager.YHRZBManager">
  10. <property name="transactionManager"><ref bean="transactionManager"/></property>
  11. <property name="dao"><ref local="yhrzbDAO"/></property>
  12. </bean>
  13. <!-- Service implemention Config -->
  14. <bean id="yhrzbService" class="com.ccgj.database.business.YHRZBService">
  15. <property name="transactionManager"><ref bean="transactionManager"/></property>
  16. <property name="yhrzbManager"><ref local="yhrzbManager"/></property>
  17. </bean>
  18. <!-- Service Locator Register -->
  19. <bean id="yhrzbIF" class="com.ccgj.database.business.YHRZBIFImpl">
  20. <property name="yhrzbService"><ref local="yhrzbService"/></property>
  21. </bean>
  22. </beans>