Spring Boot is an open source Java-based framework used to create a micro Service. It is developed by Pivotal Team and is used to build stand-alone and production ready spring applications. This chapter will give you an introduction to Spring Boot and familiarizes you with its basic concepts.
Spring Boot automatically configures your application based on the dependencies you have added to the project by using @EnableAutoConfiguration annotation. For example, if MySQL database is on your classpath, but you have not configured any database connection, then Spring Boot auto-configures an in-memory database.
The entry point of the spring boot application is the class contains @SpringBootApplication annotation and the main method.
Spring Boot automatically scans all the components included in the project by using @ComponentScan annotation.
The entry point of the Spring Boot Application is the class contains @SpringBootApplication annotation. This class should have the main method to run the Spring Boot application. @SpringBootApplication annotation includes Auto- Configuration, Component Scan, and Spring Boot Configuration.
If you added @SpringBootApplication annotation to the class, you do not need to add the @EnableAutoConfiguration, @ComponentScan and @SpringBootConfiguration annotation. The @SpringBootApplication annotation includes all other annotations.
Some Steps:-
Create stand-alone Spring applications.
Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files).
Provide opinionated 'starter' dependencies to simplify your build configuration.
Automatically configure Spring and 3rd party libraries whenever possible.
Provide production-ready features such as metrics, health checks, and externalized configuration.
Absolutely no code generation and no requirement for XML configuration.
Learn others - Once you understands the basic of Spring Boot then other related technologies like Spring and Spring MVC etc. are become easier to understand.
There are many platforms where Spring Boot is taught, but I will tell you some platforms from where you can learn Spring Boot very well, let me provide you some links and you will see from them, I guarantee that your 100% Spring Boot will be good.
you can learn by YouTubeyou can learn by GeeksforGeeks
you can learn by JavaTPoint
0 Comments
Please let us know how you liked using this website and any query by leaving a comment