• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

SpringBoot and SpringMVC Application  RSS feed

 
Ranch Hand
Posts: 387
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In SpringMVC application, we have a web.xml file and the project is packaged as a war file and deployed on a server. But, in case of SpringBoot, we don't specify any web.xml and the file is also a jar file.

I am wondering:

1. Do we  really not need the web.xml? This must be there for a web application.

2. If there is no war file, then how it is able to server the web requests?

3. How the spring boot jar file runs on embedded tomcat?
 
Ranch Hand
Posts: 1723
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Valibhav,
Regarding to your questions, you can read Spring in Action 5th edition,
1. I think web.xml is optional with JEE framework or Spring framework.
2. In Springboot, the embedded server only requires jar file, not war file.
3. I don't know how the embedded Tomcat works in Springboot yet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!