One key thing they asked me was: "Can you explain how Spring Boot handles dependency injection and how it differs from traditional Spring configuration?"
Sigiloso
My answer: In Spring Boot, dependency injection is handled using annotations like @Autowired, @Component, @Service, and @Repository. Spring Boot simplifies configuration by using auto-configuration and component scanning. Unlike traditional Spring, where we had to manually define beans in applicationContext.xml or Java config, Spring Boot automatically detects and wires beans based on the classpath and annotations. It uses @SpringBootApplication, which combines @Configuration, @EnableAutoConfiguration, and @ComponentScan, making the setup minimal and efficient. This helps reduce boilerplate code and speeds up development.