【发布时间】:2017-10-26 02:08:55
【问题描述】:
我正在尝试在 gradle 中指定我的石英属性文件。从“配置”目录而不是资源。
String quartzProperties = System.properties['org.quartz.properties'] ?: "file:config/local/quartz.properties"
System.setProperty("org.quartz.properties", quartzProperties)
来自
的输出(System.properties).each {
println "Prop ${it}"
}
或属性任务,是
Prop quartz.properties=file:config/local/quartz.properties
石英的输出是
PropertiesFactoryBean --- Loading properties file from class path resource [quartz.properties]
SchedulerConfig$$EnhancerB --- Cannot load quartz.properties.
未设置的症状是我得到了错误的 sql 方言,因此应用程序在加载时给出了数据库错误。
【问题讨论】: