Introduction to Spring Boot

Spring Boot can be considered as a new way to create Spring applications with ease. With Spring Boot, you can create standalone applications with an embedded server and you can "just run" them. For instance a web application can be run from your desktop similar to a desktop application.

Spring boot home page @ describe itself as follows:

Spring boot takes an opinionated view of the Spring platform and third-party libraries, for building production-ready Spring applications. Spring Boot favors convention over configuration and is designed to get you up and running as quickly as possible.

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run", so that you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

Important features, as listed, are:

  1. Create stand-alone Spring applications

  2. Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)

  3. Provide opinionated 'starter' POMs to simplify your Maven configuration

  4. Automatically configure Spring whenever possible

  5. Provide production-ready features such as metrics, health checks and externalized configuration

  6. Absolutely no code generation and no requirement for XML configuration

Spring Boot is just a convenient way to do Spring and hence the more you know Spring, the better you will understand and can work with Spring boot.

Spring boot promotes container less deployment. You can run your application anywhere Java is setup (e.g. a cloud server) without needing to install or configure a web container like Apache tomcat. By default, the container is embedded within your application. Note however that you can still deploy your Spring boot applications to standard containers.

Spring Boot provides easy to use starter pom dependencies such as spring-boot-starter, spring-boot-starter-test, spring-boot-start-web. Spring Boot provides  annotations that help you to include, configure, and use technologies like databases, caching, scheduling, messaging, Spring integration, batching, etc.      

Spring Boot also provides many ways to configure the Spring application. Spring Boot allows you to externalize configurations by using an or application.yml file. Spring Boot allows you to configure and use features such as using JMX, profiles, logging etc. easily.

Spring Boot also provides out-of-the-box NFRs through the Spring Boot Actuator. You can choose to manage and monitor your application using HTTP endpoints, with JMX or even by remote shell (SSH or Telnet). Auditing, health and metrics gathering can be automatically applied to your application.

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within!!!