58f1380bba71719ac80ec8001f42bcdf6423cbf8.svn-base 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jpa="http://www.springframework.org/schema/data/jpa"
  5. xmlns:util="http://www.springframework.org/schema/util"
  6. xmlns:jaxws="http://cxf.apache.org/jaxws"
  7. xsi:schemaLocation="
  8. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  9. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  10. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  11. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
  12. http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd
  13. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
  14. <context:property-placeholder ignore-unresolvable="true" local-override="true"
  15. location="classpath:application.properties"/>
  16. <!-- 使用annotation 自动注册bean, 并保证@Required、@Autowired的属性被注入 -->
  17. <context:component-scan base-package="com.yihu.jkedu.action">
  18. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
  19. </context:component-scan>
  20. <!-- 自动扫描且只扫描@Service -->
  21. <context:component-scan base-package="com.yihu.jkedu.service" >
  22. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service" />
  23. </context:component-scan>
  24. </beans>