我使用spring xd来运行批处理作业。我想从属性文件中读取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,error(s)= org.springframework.beans.factory.BeanDefinitionStoreException:无效的bean定义名称&#39;注册商&#39;在类路径资源[META-INF / spring-xd / plugins / job / job-module-beans.xml]中定义:无法解析占位符&#39; xd.job.name&#39;在字符串值&#34; $ {xd.job.name}&#34;