Spring Boot Notes
Spring Boot Notes
Ans:
Spring Boot is a project that is built on the top of the Spring Framework
It provides an easier and faster way to set up, configure, and run both simple and
web-based applications.
It is a Spring module that provides the RAD (Rapid Application Development) feature
to the Spring Framework.
It is used to create a stand-alone Spring-based application that you can just run
because it needs minimal Spring configuration.
Spring Boot is the combination of Spring Framework and Embedded Servers.
In Spring Boot, there is no requirement for XML configuration
Ans:
Ans:
It creates stand-alone Spring applications that can be started using Java -jar.
It tests web applications easily with the help of different Embedded HTTP servers
such as Tomcat, Jetty, etc. We don't need to deploy WAR files.
It provides opinionated 'starter' POMs to simplify our Maven configuration.
There is no requirement for XML configuration.
It increases productivity and reduces development time.
Ans:
Spring:
Spring MVC:
Ans:
o Presentation Layer
o Business Layer
o Persistence Layer
o Database Layer
Presentation Layer
o The presentation layer handles the HTTP requests, translates the JSON parameter to
object, and authenticates the request and transfer it to the business layer.
o In short, it consists of views i.e., frontend part.
Business Layer
Persistence Layer
o The persistence layer contains all the storage logic and translates business objects
from and to database rows.
Database Layer
o In the database layer, CRUD (create, retrieve, update, delete) operations are
performed.
6) Annotations?
Ans: