Spring MVC 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. …
HttpMessageConverter is a strategy interface that specifies a converter that can convert from and to HTTP requests and responses in Spring REST Restful web services. Internally Spring MVC uses it to convert the Http request …
InternalResourceViewResolver in Spring MVC is used to mapping the logical view names to actual view files under a particular directory of the web application. This logical view name is returned by the handler method of …
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 …