spring.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233
  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:jee="http://www.springframework.org/schema/jee"
  4. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  6. xmlns:util="http://www.springframework.org/schema/util"
  7. xmlns:repository="http://www.springframework.org/schema/data/repository"
  8. xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"
  9. xsi:schemaLocation="
  10. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
  11. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  12. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  13. http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
  14. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  15. http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd
  16. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
  17. http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd
  18. http://www.springframework.org/schema/data/repository http://www.springframework.org/schema/data/repository/spring-repository.xsd
  19. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"
  20. default-lazy-init="true">
  21. <description>Spring公共配置 </description>
  22. <context:property-placeholder
  23. ignore-resource-not-found="true" location="classpath*:spring/application.properties" />
  24. <!-- 开启注解配置 -->
  25. <!-- 使用annotation 自动注册bean, 并保证@Required、@Autowired的属性被注入. @Controller的Bean注入在spring-mvc.xml中自动注册 -->
  26. <context:component-scan base-package="com.xt.js.gkaq.web" />
  27. <context:component-scan base-package="com.xt.js.gkaq.frame" />
  28. <context:component-scan base-package="com.xt.js.gkaq.dwxx" />
  29. <context:component-scan base-package="com.xt.js.gkaq.aqsp" />
  30. <import resource="spring/spring-*.xml"/>
  31. </beans>