2017-09-26 3 views
0

を隠し、私のプロジェクトにエクスポートプロパティは、これがポンポンでビルドしているので、私はそれらをエクスポートするためのリソースを使用し、私は他のプロジェクトである性質を読む必要が私のMavenプロジェクトでXML

<resources> 
     <resource> 
      <directory>src/main/resources/config</directory> 
      <filtering>false</filtering> 
      <includes> 
       <include>**/*</include> 
      </includes> 
     </resource> 
     <resource> 
      <directory>src/main/java</directory> 
      <includes> 
       <include>**/*.*</include> 
      </includes> 
      <excludes> 
       <exclude>**/*.class</exclude> 
       <exclude>**/*.java</exclude> 
      </excludes> 
     </resource> 
    </resources> 

をそれらを読みます.xmlリソースを含んでいるプロジェクトの中で、現在そのプロジェクトのsr/main/resources/springの下にあります。このxmlファイルを "見つけることができません"というプロパティをエクスポートするリソースを追加した後、私のBeanを定義するXMLファイルがあります。 mavenビルドを実行するとこの例外が発生する

used by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring/my-beans.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring/my-beans.xml] cannot be opened because it does not exist 
Caused by: java.io.FileNotFoundException: class path resource [spring/my-beans.xml] cannot be opened because it does not exist 

i remo例外が表示されないリソースや、この問題の前に誰かが直面したこと、またはこの動作の背後にある理由を知る人はいませんか?

答えて

0

どのようにしてsprig bean xmlをロードしようとしていますか?コンテキストをロードするときに/が欠けているように見えます。 /spring/my-beans.xml

関連する問題