错误信息如下:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring/quartzContext.xml]
Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 46 in XML document from class path resource [spring/quartzContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 46; columnNumber: 39; cvc-complex-type.3.2.2: 元素 'ref' 中不允许出现属性 'local'。
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:118) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
解决方法:
<property name="triggers">
<list>
<ref local="safTimeTaskTrigger" />
</list>
</property>
修改为:
<property name="triggers">
<list>
<ref bean="safTimeTaskTrigger" />
</list>
</property>