Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 但是我的部署失败了,因为异常无法解析占位符';xd.job.name';_Spring_Spring Xd - Fatal编程技术网

Spring 但是我的部署失败了,因为异常无法解析占位符';xd.job.name';

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

我正在使用SpringXD运行批处理作业。我想从属性文件中读取
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”


作业定义如上所述作业定义如上所述