Wednesday, July 29, 2020

Introduction to SpringBoot

Spring Boot is an open-source micro framework maintained by a company called Pivotal.
 It provides Java developers with a platform to get started with an auto configurable production-grade Spring application. With it, developers can get started quickly without losing time on preparing and configuring their Spring application.

Spring Boot is built on top of the Spring framework, and it comes with many dependencies that can be plugged into the Spring application.
Some examples are Spring Kafka, Spring LDAP, Spring Web Services, and Spring Security. However, developers have to configure each building brick themselves using a lot of XML configuration files or annotations.

In Spring Boot, there is no requirement for XML configuration (deployment descriptor). It uses convention over configuration software design paradigm that means it decreases the effort of the developer.

Features:
  • 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

Setup Spring Boot:
  • Setup Java JDK from Oracle’s official site.
  • Download and Setup STS(Spring Tools Suite).
  • Start a new spring starter project
  • Click on File -> New -> Spring starter project
  • Fill the appropriate details and add dependency and finish.
  • Edit the application properties.
  • Run the main file as a Java application.

No comments:

Post a Comment

ES12 new Features