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 things in spring boot as it will work on convention than 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 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).

Create your first application Using Spring Boot

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

Connect Using Spring Application with database using JNDI 

Note : You can also reference the Official documentation of Spring Boot

https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/

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

You may also like...

1 Response

  1. I enjoy you because of your whole hard work on this blog. My mother really loves making time for research and it’s simple to grasp why. Almost all notice all relating to the powerful tactic you make simple techniques on your blog and even encourage participation from other people on this topic and our favorite princess is certainly learning a great deal. Have fun with the remaining portion of the year. You are always conducting a superb job.

Leave a Reply

Your email address will not be published. Required fields are marked *