79444134

Date: 2025-02-16 23:47:28
Score: 1.5
Natty:
Report link

If you have the Spring Boot application annotated with @SpringBootApplication, then the Application Context will be automatically instantiated for you, because: @SpringBootApplication annotation consists of:

• @EnableAutoConfiguration - which enables Spring Boot’s auto-configuration mechanism;

• @ComponentScan - which enable @Component scan on the package where the application is located;

• @Configuration - allows to register extra beans in the context or import additional configuration classes.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @SpringBootApplication
  • User mentioned (0): @SpringBootApplication
  • User mentioned (0): @EnableAutoConfiguration
  • User mentioned (0): @ComponentScan
  • User mentioned (0): @Component
  • User mentioned (0): @Configuration
  • Low reputation (0.5):
Posted by: Ameera Najah Kv