A Spring application requires constructor-based dependency injection for a mandatory dependency. Which approach is best?
What is the default scope of a Spring Bean?
Which of the following best describes IoC (Inversion of Control) in Spring?
A developer needs to inject a bean only if it exists, otherwise skip injection. Which annotation should be used?
What is the role of ApplicationContext in Spring Framework?
Advertisement
Which annotation is used to define configuration classes in Spring that replace XML configuration?
Consider a scenario where multiple beans of the same type exist. How can you specify which bean to inject?
What is the difference between @Bean and @Component annotations?
A Spring Boot application starts with ClassPathXmlApplicationContext('application.xml'). What does this do?
Which Spring concept ensures that the same bean instance is reused throughout the application lifecycle?
In a Spring Boot application, what does the @SpringBootApplication annotation combine?
Consider a scenario where you have two bean implementations of the same interface. How would you specify which one to inject using Spring annotations?
What is the role of PropertySource annotation in Spring Framework?
In Spring Data JPA, what does the @Repository annotation signify?
What is the function of the BeanFactory interface in Spring?
In Spring AOP, what does the term 'Join Point' refer to?
What does the @Transactional annotation do in Spring?
What is the significance of the @ConfigurationProperties annotation in Spring Boot?
What does the @EnableCaching annotation enable in a Spring application?
When would you use request-scoped beans in a Spring web application?