A Spring bean refers to an object that’s managed by the Spring Inversion of Control (IoC) container.
@SpringBootApplicationApplying @SpringBootApplication to a Spring app’s main application class
@SpringBootApplication is a compilation of the @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations.
import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class ExampleApplication {public static void main(String[] args) {SpringApplication.run(ExampleApplication.class, args);}}
The application context serves as a container into which Spring can inject beans.
Spring Boot extends the Spring framework by enabling the autoconfiguration of Spring beans, further simplifying development.
The application.properties file specifies the configuration properties of a Spring Boot application.