Randika Hapugoda
Randika Hapugoda

Reputation: 358

Spring boot app with web.xml in the .war file

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

Answers (1)

dunni
dunni

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

Related Questions