Java 无效属性';优先权';bean类[org.quartz.CronTrigger]:bean属性';优先权';不可写或具有无效的setter方法
SpringFramework 3.x与Quartz 2.x.x中存在错误 在Jboss 5.2.0环境中部署失败的WAR文件 错误Java 无效属性';优先权';bean类[org.quartz.CronTrigger]:bean属性';优先权';不可写或具有无效的setter方法,java,spring,Java,Spring,SpringFramework 3.x与Quartz 2.x.x中存在错误 在Jboss 5.2.0环境中部署失败的WAR文件 错误 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artifactBat
ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artifactBatchTrigger' defined in class path resource [applicationContext-quartz.xml]: Invocation of init method failed; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'priority' of bean class [org.quartz.CronTrigger]: Bean property 'priority' is not writable or has an invalid setter method.
setter的参数类型与getter的返回类型匹配吗
xml文件config-spring
我想一夸脱和弹簧有冲突
多谢各位
nicola请添加ArtifactBatchTask代码。因此,我们可以理解在任务类和/或属性bean中使用或不使用property“priority”的情况是相同的。对我来说,问题是Sring试图设置org.quartz.CronTrigger的(地下)“priority”属性。解决方案可能是在SPring之前跳过此设置优先级
<bean name="artifactBatchTask"
class="it.infocamere.middleware.mccplus.quartz.ArtifactBatchTask">
<property name="batchService" ref="artifactBatchService" />
</bean>