1.

What Are the Basic Annotations that Spring Boot Offers?

Answer»

The primary annotations that Spring BOOT offers reside in its org.springframework.boot.autoconfigure and its sub-packages. Here are a couple of basic ones:

@EnableAutoConfiguration – to MAKE Spring Boot LOOK for auto-configuration beans on its classpath and automatically APPLY them.

@SpringBootApplication – USED to denote the main class of a Boot Application. This annotation combines @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations with their default attributes.



Discussion

No Comment Found