Monday, February 19, 2018

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.

We do not need to configure so many thing in spring boot as it will work on convention then configuration

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 configurate 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 Stand alone Spring application by making making it as 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 defined spring-boot-starter-web in pom , it will automatically download the spring-core, spring-aop, spring-web,spring-webmvc 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.
Current Version of Spring boot is 1.5.10
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

Thanks for reading
Noeik 





0 comments:

Post a Comment