applicationContext-call.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  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:p="http://www.springframework.org/schema/p"
  5. xmlns:tx="http://www.springframework.org/schema/tx"
  6. xmlns:aop="http://www.springframework.org/schema/aop"
  7. xmlns:context="http://www.springframework.org/schema/context"
  8. xmlns:util="http://www.springframework.org/schema/util" xmlns:cache="http://www.springframework.org/schema/cache"
  9. xmlns:task="http://www.springframework.org/schema/task"
  10. xsi:schemaLocation="
  11. http://www.springframework.org/schema/beans
  12. http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
  13. http://www.springframework.org/schema/tx
  14. http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
  15. http://www.springframework.org/schema/context
  16. http://www.springframework.org/schema/context/spring-context-3.2.xsd
  17. http://www.springframework.org/schema/util
  18. http://www.springframework.org/schema/util/spring-util-3.2.xsd
  19. http://www.springframework.org/schema/cache
  20. http://www.springframework.org/schema/cache/spring-cache-3.2.xsd
  21. http://www.springframework.org/schema/aop
  22. http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
  23. http://www.springframework.org/schema/task
  24. http://www.springframework.org/schema/task/spring-task-3.2.xsd">
  25. <!-- <context:annotation-config /> -->
  26. <!-- spring扫描注解的配置 -->
  27. <!-- <context:component-scan base-package="com.gy.mytask" /> -->
  28. <!-- 开启这个配置,spring才能识别@Scheduled注解 -->
  29. <task:annotation-driven />
  30. <!-- <task:scheduler id="taskScheduler" pool-size="10"/> -->
  31. </beans>