Top "Spring-mvc" questions

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

Spring boot - Not a managed type

I use Spring boot+JPA and having a problem while starting the service. Caused by: java.lang.IllegalArgumentException: Not an …

spring spring-mvc jpa spring-boot spring-data
Failed to load ApplicationContext for JUnit test of Spring controller

I want to write a test case to check my controller (getPersons). This is a server side code. I have …

spring spring-mvc junit junit4 spring-mvc-test
Who sets response content-type in Spring MVC (@ResponseBody)

I'm having in my Annotation driven Spring MVC Java web application runned on jetty web server (currently in maven jetty …

java web-applications spring-mvc character-encoding
Spring Boot Program cannot find main class

I have a program which runs as a Spring boot App in eclipse. The program was running fine. Then i …

java eclipse spring-mvc spring-boot
Spring 3 MVC accessing HttpRequest from controller

I would like to handle request and session attributes myself rather then leave it to spring @SessionAttributes, for login of …

spring-mvc httprequest httpsession request-mapping
Spring Boot Configure and Use Two DataSources

How can I configure and use two data sources? For example here is what I have for the first data …

java spring spring-boot spring-mvc datasource
Ignore fields from Java object dynamically while sending as JSON from Spring MVC

I have model class like this, for hibernate @Entity @Table(name = "user", catalog = "userdb") @JsonIgnoreProperties(ignoreUnknown = true) public class User …

java json hibernate spring-mvc
No matching bean of type ... found for dependency

after some days of trying and waitin' for answers on the springsource forums I'll try it here. Running my application …

java spring hibernate spring-mvc autowired
Spring MVC - How to get all request params in a map in Spring controller?

Sample URL: ../search/?attr1=value1&attr2=value2&attr4=value4 I do not know the names of attr1, att2, …

java spring spring-mvc
Is it possible to have empty RequestParam values use the defaultValue?

if I have a a request mapping similar to the following: @RequestMapping(value = "/test", method = RequestMethod.POST) @ResponseBody public void …

java spring spring-mvc