1Spring Boot is an open source Java-based framework used to create a micro Service. It is developed by Pivotal Team and is used to build stand-alone and production ready spring applications.
1Spring Boot is a lightweight framework
2that takes most of the work out of
3configuring Spring-based applications.
1<!-- Parent pom is mandatory to control versions of child dependencies -->
2<parent>
3 <groupId>org.springframework.boot</groupId>
4 <artifactId>spring-boot-starter-parent</artifactId>
5 <version>2.1.6.RELEASE</version>
6 <relativePath />
7</parent>
8
9<!-- Spring web brings all required dependencies to build web application. -->
10<dependency>
11 <groupId>org.springframework.boot</groupId>
12 <artifactId>spring-boot-starter-web</artifactId>
13</dependency>
14
1import org.springframework.boot.SpringApplication;
2import org.springframework.boot.autoconfigure.SpringBootApplication;
3
4@SpringBootApplication
5public class DemoApplication {
6 public static void main(String[] args) {
7 SpringApplication.run(DemoApplication.class, args);
8 }
9}