Spring Boot + WEB-INF Spring Boot + WEB-INF spring spring

Spring Boot + WEB-INF


Maybe a little bit late, but in order to put your xml file inside WEB-INF, if you are using Maven, the correct placement will be:

src/main/webapp/WEB-INF/jboss-deployment-structure.xml


For a regular maven project if you need to have a structure of

target/WEB-INF/blabla.xml 

then you should put

src/main/resources/WEB-INF/blabla.xml

I hope that will help.


I had the same problem working with the Spring boot projects.

This kind of project usually comes with embedded modules like Apache tomcat and prepared for use Spring annotations.

For change configurations and make your web application easily configurable I suggest to create from scratch. See this url for more information:

http://projects.spring.io/spring-boot/

In my case I changed to:

    <dependency>        <groupId>org.springframework</groupId>        <artifactId>spring-web</artifactId>        <version>${spring.version}</version>    </dependency>

and I create my own structure.