January 2018
Intermediate to advanced
414 pages
10h 29m
English
The @SpringBootApplication annotation provides a convenient way to bootstrap a Spring application that can be started from a main() method. In many situations, you can just delegate to the static runApplication method:
@SpringBootApplicationclass Chapter2Applicationfun main(args: Array<String>) { runApplication<Chapter2Application>(*args)}
You can see that we have used the @SpringBootApplication annotation for marking a class that we will use as our application context. We will learn more about the Spring Application Context shortly.
When a Spring Boot application starts it will autoconfigure all the required systems; if it is a web app, it will start a web application.
Read now
Unlock full access