Home / Interview / Spring :: General Questions

Interview :: Spring

31) Does spring perform weaving at compile time?

No, spring framework performs weaving at runtime.

32) What are the AOP implementation?

There are 3 AOP implementation.

  1. Spring AOP
  2. Apache AspectJ
  3. JBoss AOP
33) What is the front controller class of Spring MVC?

The DispatcherServlet class works as the front controller in Spring MVC.

34) What does @Controller annotation?

The @Controller annotation marks the class as controller class. It is applied on the class.

35) What does @RequestMapping annotation?

The @RequestMapping annotation maps the request with the method. It is applied on the method.

36) What does the ViewResolver class?

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.

37) Which ViewResolver class is widely used?

The org.springframework.web.servlet.view.InternalResourceViewResolver class is widely used.

38) Does spring MVC provide validation support?

Yes.