February 2018
Intermediate to advanced
406 pages
9h 55m
English
This class contains the main method where the execution starts. This main method will bootstrap the Spring Boot application, look at the configurations, and start the respective bundled containers such as Tomcat if executing web services:
package com.mycompany.product;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.EnableAutoConfiguration;@SpringBootApplicationpublic class ProductSpringApp { publicstaticvoid main(String[] args) throws Exception { SpringApplication.run(ProductSpringApp.class, args); } }
Note the annotation called @SpringBootApplication.
The @SpringBootApplication annotation is equivalent to using @Configuration, @EnableAutoConfiguration ...
Read now
Unlock full access