Top "Spring-mvc" questions

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

How to manually set an authenticated user in Spring Security / SpringMVC

After a new user submits a 'New account' form, I want to manually log that user in so they don't …

java authentication spring-mvc spring-security
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:

I am creating web application using Spring, Hibernate, Struts, and Maven. I get the below error when I run mvn …

java spring hibernate spring-mvc struts
Spring MVC UTF-8 Encoding

At the moment I'm trying to get started with Spring MVC. While trying things out I ran into an encoding …

java spring-mvc utf-8 character-encoding
Mock MVC - Add Request Parameter to test

I am using spring 3.2 mock mvc to test my controller.My code is @Autowired private Client client; @RequestMapping(value = "/user", …

spring spring-mvc spring-mvc-test
Spring MVC Controller redirect using URL parameters instead of in response

I am trying to implement RESTful urls in my Spring MVC application. All is well except for handling form submissions. …

java redirect spring-mvc controller
How to return a custom object from a Spring Data JPA GROUP BY query

I'm developing a Spring Boot application with Spring Data JPA. I'm using a custom JPQL query to group by some …

java spring spring-mvc jpa repository
RestClientException: Could not extract response. no suitable HttpMessageConverter found

Using the curl command: curl -u 591bf65f50057469f10b5fd9:0cf17f9b03d056ds0e11e48497e506a2 …

json spring rest spring-mvc resttemplate
How to customise the Jackson JSON mapper implicitly used by Spring Boot?

I'm using Spring Boot (1.2.1), in a similar fashion as in their Building a RESTful Web Service tutorial: @RestController public class …

java spring spring-mvc jackson spring-boot
Validation error: "No validator could be found for type: java.lang.Integer"

I am working on a project with Spring why do I keep getting the following error? javax.validation.UnexpectedTypeException: No …

java hibernate validation spring-mvc
Loading context in Spring using web.xml

Is there a way that a context can be loaded using web.xml in a Spring MVC application?

java spring-mvc web.xml