Spring MVC interview questions Archive
The key difference between a traditional Spring MVC @Controller and the RESTful web service @RestController is the way the HTTP response body is created. While the traditional MVC controller relies on the View technology, the …
In this tutorial, we will discuss about difference between webmvcconfigureradapter vs webmvcconfigurationsupport. These both classes are related to Spring MVC java based configuration. It is actually simplified web configuration with Spring in the web application. …
This tutorial has popular Spring MVC Interview Questions and answers. These have been written to help you prepare for the interviews and quickly revise the concepts in general. Before reading these questions you can practice …
Both annotations @RequestParam and @PathVariable in Spring MVC are used for fetching the values of request parameters. These annotations have similar purpose but some differences in use. The key difference between @RequestParam and @PathVariable is …
In spring the @RequestParam annotation is used to bind request parameter values to the handler method arguments in controller. Let’s see use of it with example in this article. @Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface RequestParam …
This tutorial explains the difference between Application Context vs Web Application Context in spring mvc. The ApplicationContext and WebApplicationContext both are almost same thing but there are some basic differences related to the web aware …
DispatcherServlet: The Heart of Spring Web MVC A “front controller” coordinates all request handling activities analogous to Struts ActionServlet / JSF FacesServlet Delegates to Web infrastructure beans Invokes user Web components Fully customizable interfaces for …