【发布时间】:2017-05-04 13:25:59
【问题描述】:
我在 Spring Boot 中使用 Apache camel 作为中间层来实现我的代码,并且在我使用quartz2 组件设置camel 中的路由时,我想使用外部quartz.properties 文件来覆盖默认的quartz.properties 文件。有人可以吗请帮我解决这个问题。 我尝试使用 CommandLineRunner 来实现,但出现如下异常 org.springframework.beans.factory.BeanCreationException:创建名为“schedulerApplication”的bean时出错:注入自动装配的依赖项失败;嵌套异常是 java.lang.IllegalArgumentException:无法解析值“${org.quartz.scheduler.instanceName}”中的占位符“org.quartz.scheduler.instanceName”
【问题讨论】:
标签: spring spring-boot apache-camel quartz-scheduler