Questions tagged [spring-json]

35 questions
0
votes
1 answer

How to return the JSON representation of an object through a RESTful spring application?

I'm targeting Spring version 4.2. So after reading some pages of the reference documentation, I developed this application. This application has only one method. This method should be able to return a JSON representation of a very simple java…
0
votes
1 answer

Spring 4.0.x JSON/Ajax HTTP/1.1 406 Not Acceptable

I am working with Spring 4.0.5.RELEASE, Spring MVC through only Java Config I have in my pom.xml the following: org.codehaus.jackson jackson-mapper-asl
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
0
votes
2 answers

Unsupported Media Type Error in AJAX-Spring

I am trying to pass POST data from my jsp with jquery-ajax to my Spring-MVC controller function. The data is passed fine and I can print the JSON data when I use a String object to receive the RequestBody. But when I employ a DTO which has a List…
evyavan
  • 35
  • 8
0
votes
1 answer

How to implement JQuery.ajax(dataType:json) to spring mvc 2.5

I'm trying to to make AJAX call with the jQuery library using the $.ajax() method and Json as dataType, the problem comes when I try to apply that to my app in springmvc 2.5, I simply cant find a good tutorial on how to apply that to Spring mvc 2.5,…
edlizano
  • 15
  • 6
-1
votes
1 answer

Spring Controller Returns Object Incompletely

There are three classes (Course, Lesson, User). @EqualsAndHashCode(callSuper = true) @Entity @Table(name = "usr") @Data public class User extends RepresentationModel implements UserDetails { @Id @GeneratedValue(strategy =…
1 2
3