Introduction to Spring Boot
Sprint Boot is an open-source Java-based framework used and it is used to create a micro service. Spring Boot is developed by the Pivotal Team and it is used to create a stand-alone application and production-ready spring application.
What is MicroService?
Micro Service is an architecture that provides the developers to develop and deploy services on one's own. Each and every service running has its own process and this will achieve the lightweight model to support their business application.
What is Spring Boot?
Java developers use Spring Boot to develop stand-alone and production-grade spring applications that developers can just run because it provides a good platform for it. Without the entire Spring configuration setup, we can get started with the minimum configuration setup.
The primary goals of the Spring Boot?
- Provide a fundamentally and broad accessible startup experience for all the Spring development.
- Because of the be compromising out of the box but get out the way quickly, as the requirement starts to separate from the default.
- From common to huge classes of projects, provide a wide range of non-functional features.
- For XML configuration, no code generation and no requirement need.
Advantages of Spring Boot
- To reduce the development time.
- Increases productivity.
- Spring application easy to understand and develop.
Why Spring Boot?
Spring Boot automatically configure your application. Configuration of the application based on the dependencies that have added to the project. It is done by using @EnableAutoConfiguration annotation. For example, if the MySQL database is on my classpath and you who use that database doesn't configure any database connection, at that point Spring Boot Will auto-configure an in-memory database.
The class contains @SpringBootApplication annotation and the main method are is the entry point of the spring boot application.
By using @ComponentScan annotation Spring Boot automatically scans all the components included in the project.
Comments
Post a Comment