Servlet and Servlet Container
Servlet and Servlet container together provide the base for building web-based applications.
Example: Imagine a simple login form on a website. When a user submits their username and password, a servlet handles the request:
In modern Spring Boot applications:
This makes web application development faster and simpler.
Why Remove web.xml ?
Earlier Java web apps needed a web.xml file to define servlet mappings and settings. Over time, maintaining it became complex.
Now:
Example: Spring Boot Controller instead of servlet.