@JsonIgnore and @JsonBackReference are being Ignored

后端 未结 6 2099
感情败类
感情败类 2020-12-31 15:13

I\'m working with RestEasy, Jboss 7 and EJB 3.1. I\'m creating a RESTful web service that returns data in JSON format.

The problem is that I have a @ManyToOne<

6条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 16:05

    I had a similar problem where my getter function was not named based on the field name, so the json parsing was still happening for the getter. Changing the getter name solved the issue.

提交回复
热议问题