spring.xml 1.2 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context.xsd
  9. http://www.springframework.org/schema/aop
  10. http://www.springframework.org/schema/aop/spring-aop.xsd
  11. http://www.springframework.org/schema/tx
  12. http://www.springframework.org/schema/tx/spring-tx.xsd">
  13. <!-- 自动注入 -->
  14. <context:component-scan base-package="cn.efunbox.service.impl" />
  15. <!-- 加载properties文件 -->
  16. <!-- <bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
  17. <property name="locations">
  18. <list>
  19. <value>classpath:mysqldb.properties</value>
  20. </list>
  21. </property>
  22. </bean> -->
  23. </beans>