0% found this document useful (0 votes)
6 views

Spring Question Prepaired

Spring Boot simplifies application development by scanning for annotations that determine the application's configuration, such as setting up a web server for web applications. It starts by invoking the main() method in the SpringApplication class, which initializes the application context and embedded web server. Spring Boot is preferred over traditional Spring due to its ease of use, production readiness, scalability, speed, and customization options.

Uploaded by

Bl Gocher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Spring Question Prepaired

Spring Boot simplifies application development by scanning for annotations that determine the application's configuration, such as setting up a web server for web applications. It starts by invoking the main() method in the SpringApplication class, which initializes the application context and embedded web server. Spring Boot is preferred over traditional Spring due to its ease of use, production readiness, scalability, speed, and customization options.

Uploaded by

Bl Gocher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q: working of Spring Boot ?

ans:
Spring Boot works by scanning your application for annotations.
These annotations tell Spring Boot what kind of application you are building and
how to configure it.
For example, if you have an annotation that indicates that your application is a
web application,
Spring Boot will automatically configure a servlet container and a web server.
Spring Boot also provides a number of starters. These are dependency descriptors
that make it easy to add common features to your application. For example,
if you want to add a database to your application, you can add the Spring Boot
starter for JDBC.
This will automatically add the necessary dependencies to your project and
configure the database connection for you.

----

Q: How does a spring application get started?:


A Spring application gets started by calling the main() method in the
SpringApplication class.
This method takes a SpringApplicationBuilder object as a parameter, which is used
to configure the application.
The SpringApplicationBuilder object can be used to set the application’s name,
version, and other properties.
Once the SpringApplication object is created, the run() method is called.
This method starts the application by creating an application context and
initializing it.
Once the application context is initialized, the run() method starts the
application’s embedded web server.
The embedded web server is used to serve the application’s web pages.

-----

Q : Why do we prefer Spring Boot over Spring?


ans:
Spring Boot Feature:-

Easier,
More production-ready
More scalable
Faster
More Customizable

-----

Q : What are the Spring Boot Annotations ?

You might also like