Advantages over servlet ,Spring and Springboot.

Servlet is a class which handle the request and response

servlet container is the one which manages the servlets.

We have to extend the HttpServlet one class has one doput,doget and we have make more servlet for one servlet one get, put, update, delete.

there is web.xml is it make more complex it is servlet mapping we have to write all the mapping in that webxml for each servlet .

first it goes to the servlet container this servlet container uses this web.xml and to determine which servlet it goes it tell and then it involves particular servlet

There is certain problem which solves the spring framework.

In web.xml contains lot of the information and it is very difficult to manages and understand

spring framework comes to annotation which makes to understand and use.

Inversion of control:

Ioc is a more flexible way to manage object dependencies and its lifecycle (Dependency injection).

if we create object there will be tight coupling and writing the Junit test cases is very difficult if we create object then in test case if it will call real object but in test cases we mock the object so DI will solve tis problem

And path making make little bit of difficult to understand spring mvc comes with flexible way by annotations lets say more organized way to handle the request and response

Spring framework is lot of integration available with another framework

Spring Boot:

1.Depedency Managment

2.AutoConfiguration: No need to separately configurating dispatcher servlet ,Appconfig,component scan and enable web mvc and springboot add interbally by default

3.EmbbedServer.

If you use GET instead of POST for creating resources, while it might technically work (depending on how the server is set up), it violates the HTTP protocol's semantics and may lead to issues with security, caching, and behavior. Similarly, using POST to retrieve data is incorrect and goes against the RESTful principles.