Spring Boot | |
Author: | Rod Johnson |
Developer: | VMware |
Released: | [1] |
Platform: | Java EE |
Programming Language: | Java |
Genre: | Application framework |
License: | Apache License 2.0 |
Spring Boot is an open-source Java framework used for programming standalone, production-grade Spring-based applications with a bundle of libraries that make project startup and management easier.[2] Spring Boot is a convention-over-configuration extension for the Spring Java platform intended to help minimize configuration concerns while creating Spring-based applications. The application can still be adjusted for specific needs, but the initial Spring Boot project provides a preconfigured "opinionated view" of the best configuration to use with the Spring platform and selected third-party libraries.
Spring Boot can be used to build microservices, web applications, and console applications.[3]
Spring Boot does not require manual configuration of the, since it automatically configures the application based on the configuration it detects.
Spring Boot has a class, which is a specialization of the . This is an out-of-the-box implementation of, which eliminates the need for the developer to construct their own implementation of the class.
The configuration properties for the Spring Boot application can be specified in the or file.Examples of properties that can be included in this file include the server.port
and spring.application.name
properties.
Spring boot has an annotation,, which allows the Spring Boot application to autoconfigure third-party libraries and detected features found on the classpath. As an example, the class that has the annotation can extend the class if the application is packaged and deployed as a WAR file.
The annotation combines three Spring-specific annotations:, and .
The annotation is a specialization of the Spring-specific annotation. The class with the is marked as the configuration class for the Spring Boot application.
The annotation is Spring-specific annotation that enables the Spring Boot automatic configuration.
The Spring Boot Actuator allows for monitoring and management capabilities for the Spring Boot Application. A major advantage of using the Spring Boot Actuator is that it implements a number of production-ready features without requiring the developer to construct their own implementations.
If Maven is used as the build tool, then the dependency can be specified in the pom.xml
configuration file.
Spring Boot has a number of existing Spring Framework Modules.
See main article: article and Spring Security. Spring Boot has integration with the Spring Security Module. The simplest way for integrating Spring Boot with Spring Security is to declare the starter dependency in the build configuration file.
If Maven is used as the build tool, then the dependency with artifact ID dependency can be specified in the pom.xml
configuration file.
By default, Spring boot provides embedded web servers (such as Tomcat) out-of-the-box. However, Spring Boot can also be deployed as a WAR file on a standalone WildFly application server.
If Maven is used as the build tool, there is a Maven plugin that allows for automatic deployment of the generated WAR file.