Quartz 和 Spring 集成后 Bean 注入的问题解决

1、 定义了一个被 spring 管理的 Bean   

配置 applicationContext.xml  

2、 在 Job 中注入 spring 管理的 Bean  

问题: 在 Job 中 spring 管理的 Bean 无法注入  解决: 需要在 Scheduler 中自定义 JobFactory   

配置 applicationContext.xml  

猜你喜欢

转载自blog.csdn.net/qq_40208605/article/details/94738435
今日推荐