watero-rst-ioc.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. default-autowire="byName"
  6. default-lazy-init="true"
  7. xmlns:task="http://www.springframework.org/schema/task"
  8. xmlns:aop="http://www.springframework.org/schema/aop"
  9. xsi:schemaLocation=
  10. "http://www.springframework.org/schema/aop
  11. http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
  12. http://www.springframework.org/schema/beans
  13. http://www.springframework.org/schema/beans/spring-beans.xsd
  14. http://www.springframework.org/schema/task
  15. http://www.springframework.org/schema/task/spring-task-4.1.xsd
  16. http://www.springframework.org/schema/context
  17. http://www.springframework.org/schema/context/spring-context-4.1.xsd">
  18. <!-- 配置自动扫描的包:不扫描控制器和异常处理 -->
  19. <context:component-scan base-package="com.iamberry">
  20. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
  21. <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
  22. </context:component-scan>
  23. <!-- 使用CGLIB动态代理 -->
  24. <aop:aspectj-autoproxy proxy-target-class="true"/>
  25. <!-- 开启注解启动定时器 -->
  26. <task:annotation-driven/>
  27. <!-- DataSource -->
  28. <import resource="classpath:watero-rst-db.xml"/>
  29. <!-- Shiro -->
  30. <import resource="classpath:watero-web-shiro.xml"/>
  31. </beans>