Spring Boot
September 9, 2021
M04 Q18 What does @SpringBootApplication do?
@SpringBootApplication annotation is supposed to be used on top of the class and it was introduced for convenience. Usage of @SpringBootApplication annotation is equivalent to usage of following three annotations:
@Configuration– allows additional bean registration@EnableAutoConfiguration– enables context auto-configuration@ComponentScan– turns on scanning for@Componentannotated classes