Requests to return an JSON object returns Internal Server Error 500
@RequestMapping(method = RequestMethod.GET, value = "/get")
public @ResponseBody Question getQuestionsAjax() {
(...)
returnĀ (...);
}
<bean id="jacksonMessageConverter” class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter”/>
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.0</version> </dependency>
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.0</version> </dependency>
@RequestMapping(method = RequestMethod.GET, value = "/get")
public @ResponseBody Question getQuestionsAjax() {
(...)
return (...);
}