Spring 但是我的部署失败了,因为异常无法解析占位符';xd.job.name';
我正在使用SpringXD运行批处理作业。我想从属性文件中读取Spring 但是我的部署失败了,因为异常无法解析占位符';xd.job.name';,spring,spring-xd,Spring,Spring Xd,我正在使用SpringXD运行批处理作业。我想从属性文件中读取job.xml中的文件位置。 job.xml <context:property-placeholder location="classpath:properties/application.properties" system-properties-mode="OVERRIDE" /> <bean id="readSignOn" class="org.springframework.ba
job.xml
中的文件位置。
job.xml
<context:property-placeholder location="classpath:properties/application.properties" system-properties-mode="OVERRIDE" />
<bean id="readSignOn" class="org.springframework.batch.item.xml.StaxEventItemReader">
<property name="fragmentRootElementName" value="SIGNON" />
<property name="resource" value="file:${file.location}" />
<property name="unmarshaller" ref="reportUnmarshaller" />
</bean>
</context>
DeploymentStatus{state=failed,错误)=org.springframework.beans.factory.BeanDefinitionStoreException:在类路径资源[META-INF/spring xd/plugins/job/job module beans.xml]中定义了名为“registrar”的无效bean定义:无法解析字符串值“${xd.job.name}”中的占位符“xd.job.name”
作业定义如上所述作业定义如上所述