watero-rst-ioc.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <!-- 获取jdbc配置文件 -->
  19. <bean id="myConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  20. <property name="locations">
  21. <list>
  22. <value>classpath:dev-jdbc.properties</value>
  23. <value>classpath:activiti-jdbc.properties</value>
  24. </list>
  25. </property>
  26. <property name="ignoreUnresolvablePlaceholders" value="true" />
  27. </bean>
  28. <!-- 配置自动扫描的包:不扫描控制器和异常处理 -->
  29. <context:component-scan base-package="com.iamberry">
  30. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
  31. <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
  32. </context:component-scan>
  33. <!-- 使用CGLIB动态代理 -->
  34. <aop:aspectj-autoproxy proxy-target-class="true"/>
  35. <!-- 开启注解启动定时器 -->
  36. <!--<task:annotation-driven/>-->
  37. <!-- DataSource -->
  38. <import resource="classpath:watero-rst-db.xml"/>
  39. <!-- Shiro -->
  40. <import resource="classpath:watero-web-shiro.xml"/>
  41. <!-- Activi -->
  42. <import resource="classpath:activiti.xml"/>
  43. </beans>