Top "Spring-mvc" questions

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

This application has no explicit mapping for /error

I used maven to do the tutorial https://spring.io/guides/gs/uploading-files/ All the codes I used was copied. …

spring spring-mvc file-upload upload
How to respond with HTTP 400 error in a Spring MVC @ResponseBody method returning String?

I'm using Spring MVC for a simple JSON API, with @ResponseBody based approach like the following. (I already have a …

java spring spring-mvc http-error
What is @ModelAttribute in Spring MVC?

What is the purpose and usage of @ModelAttribute in Spring MVC?

java spring-mvc modelattribute
Spring MVC - How to return simple String as JSON in Rest Controller

My question is essentially a follow-up to this question. @RestController public class TestController { @RequestMapping("/getString") public String getString() { return "Hello …

java json spring rest spring-mvc
Where can I download Spring Framework jars without using Maven?

SpringSource.org changed their site to http://spring.io Does someone know how to get the latest build without Maven/…

java spring spring-mvc
How to upload a file and JSON data in Postman?

I am using Spring MVC and this is my method: /** * Upload single file using Spring Controller. */ @RequestMapping(value = "/uploadFile", method = …

java json spring-mvc postman
Redirect to an external URL from controller action in Spring MVC

I have noticed the following code is redirecting the User to a URL inside the project, @RequestMapping(method = RequestMethod.POST) …

java spring jsp spring-mvc
No mapping found for HTTP request with URI.... in DispatcherServlet with name

I checked out nearly every relevant article on stackoverflow already, but I just cant fix my problem. Here is the …

spring spring-mvc
How does autowiring work in Spring?

I'm a little confused as to how the inversion of control (IoC) works in Spring. Say I have a service …

java spring spring-mvc ioc-container autowired
How to use Session attributes in Spring-mvc

Could you help me write spring mvc style analog of this code? session.setAttribute("name","value"); And how to add …

spring-mvc session servlets