Spring Framework Ques Answers - ayushmathur94/DirectQuesAns_Prep GitHub Wiki

Q1. What is Spring Framework ? Answer

Q. What are features of Spring ? Answer

Q. Name some of the important Spring Modules ? Answer

Q. What is IOC ? And What is Dependency Injection ? Answer

Q. How can we inject bean into our class using dependency injection ?

Q. Explain Different modes of auto wiring ?

Q. What is Spring Application Context ?

Q. How to inject parameters to a constructor in Spring ?

Q. What is Dispatcher Servlet ?

Q. How many bean scopes are supported by Spring ?

Q. What is Spring Bean life cycle ?

Q. What is Spring Configuration file and how many ways we can do that ?

Q. Difference between Setter and Constructor injection ?

Q. What is Bean wiring and @Autowired annotation ?

Q. What is InternalResourceViewResolver in Spring MVC ?

Q. What is @ComponentScan annotation in Spring ?

Q. How does Spring MVC Works Internally or Explain Spring MVC Request Flow ?

Q. What is the difference between @Controller and @RestController ?

Q. What is the use of @ModelAttribute annotation ?

Q. Explain @PathVariable , @RequestParam Annotations ?

Q. How does @RequestMapping Annotation Work ?

Q. What is the difference between BeanFactory and ApplicationContext ?

Q. Are Singleton Beans Thread-Safe ?

Q. Can we have multiple Spring Configuration Files in One Project ?

Q. What is Spring Security ?

Q. Can you create a controller without using @Controller or @RestController annotations?

Q. What is ContextLoaderListener and what does it do?

Q. What is the importance of the web.xml in Spring MVC?

Q. What is the importance of @Required annotation?

Q. How can you achieve thread-safety in beans?

Q. What are Spring Interceptors?

Q. What are the differences between the context:annotation-config vs context:component-scan tags?

Q. What do you understand by MultipartResolver?