January 2018
Intermediate to advanced
434 pages
14h 1m
English
If you've used Spring Boot before, you must be familiar with using @Configuration, @EnableAutoConfiguration, and @ComponentScan in your main class. These were used so frequently that Spring Boot provides a convenient @SpringBootApplication alternative. The Spring Boot looks for the public static main method, and we will use a top-level function outside the Application class.
If you noted, while setting up the dependencies, we used the kotlin-spring plugin, hence we don't need to make the Application class open.
Here's an example of the Spring Boot application:
package collegeimport org.springframework.boot.SpringApplicationimport org.springframework.boot.autoconfigure.SpringBootApplication@SpringBootApplicationclass Application ...
Read now
Unlock full access