Top "Spring-mvc" questions

A framework for building Java web applications based on the Model-View-Controller (MVC) pattern.

SpringMVC RequestMapping for GET parameters

How to make the RequestMapping to handle GET parameters in the url? For example i have this url http://localhost:8080/…

java spring spring-mvc
What is username and password when starting Spring Boot with Tomcat?

When I deploy my Spring application via Spring Boot and access localhost:8080 I have to authenticate, but what is the …

java spring spring-mvc tomcat spring-boot
Launching Spring application Address already in use

I have this error launching my spring application: java -jar target/gs-serving-web-content-0.1.0.jar . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (…

java spring maven tomcat spring-mvc
how to send an array in url request

My requirement is as follows: I want to give actor name, start date, end date and get all the films …

java web-services spring url spring-mvc
"Could not find acceptable representation" using spring-boot-starter-web

I am trying to use spring-boot-starter-web to create a rest service serving up JSON representations of Java objects. From what …

java json spring maven spring-mvc
How to avoid the "Circular view path" exception with Spring MVC test

I have the following code in one of my controllers: @Controller @RequestMapping("/preference") public class PreferenceController { @RequestMapping(method = RequestMethod.GET, …

spring spring-mvc circular-reference thymeleaf spring-mvc-test
Spring MVC: How to perform validation?

I would like to know what is the cleanest and best way to perform form validation of user inputs. I …

java spring-mvc validation user-input
What is the best way to return different types of ResponseEntity in Spring MVC or Spring-Boot

I have written simple rest application using Spring MVC 4 (or Spring-Boot). Within the controller I have return ResponseEntity. But in …

java json spring-mvc spring-boot
What is Dispatcher Servlet in Spring?

In this image (which I got from here), HTTP request sends something to Dispatcher Servlet. My Question is what does …

java spring spring-mvc servlet-dispatching
ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

I have written a spring batch application using Spring boot. When I am trying to run that application using command …

spring spring-boot spring-mvc