Top "Spring-mvc" questions

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

Using env variable in Spring Boot's application.properties

We are working on a Spring Boot web app and the database we are using is MySql; the setup we …

java mysql spring spring-mvc openshift
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

i am using spring 3.1.0.RELEASE, and my servlet container is tomcat 7 and my IDE is eclipse indigo and the jar …

spring maven spring-mvc maven-2
Add context path to Spring Boot application

I am trying to set a Spring Boot applications context root programmatically. The reason for the context root is we …

java spring spring-mvc spring-boot
@RequestBody and @ResponseBody annotations in Spring

Can someone explain the @RequestBody and @ResponseBody annotations in Spring 3? What are they for? Any examples would be great.

java spring spring-mvc annotations
@RequestParam in Spring MVC handling optional parameters

Is it possible for a Spring controller to handle both kind of requests? 1) http://localhost:8080/submit/id/ID123432?logout=true 2) …

java spring spring-mvc
Infinite Recursion with Jackson JSON and Hibernate JPA issue

When trying to convert a JPA object that has a bi-directional association into JSON, I keep getting org.codehaus.jackson.…

java json orm spring-mvc jackson
Spring get current ApplicationContext

I am using Spring MVC for my web application. My beans are written in "spring-servlet.xml" file Now I have …

java spring spring-mvc servlets
Neither BindingResult nor plain target object for bean name available as request attribute

I'm just learning the ropes of Spring 3's annotation fu and I've stumbled upon the newb's nightmare exception. Would appreciate …

spring-mvc annotations
log4j:WARN No appenders could be found for logger in web.xml

I already put the log4jConfigLocation in web.xml, but I still get the following warning: log4j:WARN No …

java spring spring-mvc log4j
When use ResponseEntity<T> and @RestController for Spring RESTful applications

I am working with Spring Framework 4.0.7, together with MVC and Rest I can work in peace with: @Controller ResponseEntity<…

spring spring-mvc spring-3 spring-4