Reputation: 358
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?
Upvotes: 2
Views: 1255
Reputation: 44535
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).
Upvotes: 1