Spring_Boot_Complete_Interview_Questions
Spring_Boot_Complete_Interview_Questions
Internally:
org.springframework.boot.autoconfigure.EnableAutoConfiguration.
Answer:
Answer: Spring Boot uses the Spring Environment abstraction to manage externalized
configurations. It loads properties in the following order of precedence:
1. Command-line arguments.
3. Environment variables.
4. System properties.
- spring-boot-starter-web: Includes Spring MVC, Jackson, and Tomcat for web applications.
Answer: Spring Boot resolves circular dependencies using proxy beans or lazy initialization:
1. Proxy Beans: For @Autowired dependencies, Spring creates a proxy reference to delay
2. @Lazy Annotation: Annotate one of the beans with @Lazy to postpone initialization.
3. Avoidance: Refactor code to remove circular dependencies, as they indicate poor design.