312) What are the AOP implementation?Ans: There are 3 AOP implementation.

Spring AOP

Apache AspectJ

JBoss AOP

Spring MVC Interview Questions

313) What is the front controller class of Spring MVC?Ans: The DispatcherServlet class works as the front controller in Spring MVC.

314) What does @Controller annotation?Ans: The @Controller annotation marks the class as controller class. It is applied on the class.

315) What does @RequestMapping annotation?Ans: The @RequestMapping annotation maps the request with the method. It is applied on the method.

316) What does the ViewResolver class?Ans: The View Resolver class resolves the view component to be invoked for the request. It defines prefix and suffix properties to resolve the view component.

317) Which ViewResolver class is widely used?Ans: The org.springframework.web.servlet.view.InternalResourceViewResolver class is widely used.

318) Does spring MVC provide validation support?Ans: Yes.

319) How do you integrate Spring MVC with tiles?Ans: Tiles helps us to define the layout for a web page. We can integrate Spring MVC with tiles by configuring TilesConfigurer and setting up appropriate view resolver.

320) Can you explain the concept of Interceptors in Spring MVC?Ans: Handler interceptors are used when you want to apply specific functionality to certain requests. Handler Interceptors should implement the interface HandlerInterceptor.

Three methods are defined:

preHandle(..) is called before the actual handler is executed;
postHandle(..) is called after the handler is executed;
afterCompletion(..) is called after the complete request has finished.