What is Spring Boot
Spring boot is one among all the projects of Spring Framework Community, Which is mainly focused on building production-ready application right from the initials.
What does convention over configuration means?
Spring boot has writing its API in a way that it has pre-assumed the placeholder of the different configuration and it assumed that the developer will also place the configuration in that placeholder only.
Example – The application.properties file is a property file where if I will write as
Server.port = 8181
The Spring boot will configure the tomcat server port as 8181 as server.port is defined in the code of the spring boot APIs
So Again what is spring boot?
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration. (source spring.io).
What are the features of Spring boot?
- Create stand-alone Spring applications
- This Means, Spring Boot makes the Project as a Standalone Spring application by making it a Jar.
- Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
- Provide opinionated ‘starter’ POMs to simplify your Maven configuration
- We do not need to define all the dependency, it has provided the starter where all the dependency associated with particular functionality will be automatically downloaded Ex: If I will define spring-boot-starter-web in pom, it will automatically download the spring-core, spring-aop, spring-web,spring-web MVC, etc and all.
- Automatically configure Spring whenever possible
- Provide production-ready features such as metrics, health checks and externalized configuration
- Absolutely no code generation and no requirement for XML configuration
Note : You can also reference the Official documentation of Spring Boot
Spring also has provided Spring Initializr to create the spring-boot compatible structured.
The Official Site of Spring boot project is https://projects.spring.io/spring-boot/
If you like this article , please share it with your friends and colleagues