I have a spring boot application that works fine in tomcat embedded. But when i take the .war file as the final output I have no WEB-INF/web.xml file. To deploy this in a PASS i need the web.xml in the final output .war. How can i get it in the built?
1 Answer
If you deploy it in a Servlet 3.0 compatible container, you don't need a web.xml. You can also use the WebApplicationInitializer mechanism from Spring (check for example the SpringBootServletInitializer).
1 Comment
Chevalier
but if i don't inherit the spring-boot-samples parent(in example), i can't create war correctly stackoverflow.com/questions/35885898/…