• 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

SpringBoot and SpringMVC Application  RSS feed

 
Ranch Hand
Posts: 381
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: 1710
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.
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!