Spring REST, JSON “Can not handle managed/back reference 'defaultReference'” 415 Unsupported Media Type

前端 未结 7 1560
一整个雨季
一整个雨季 2020-12-28 17:16

I am trying to POST to http://localhost:9095/translators from an AngularJS front-end using Spring boot/Spring RestController backend.

I can do a GET and the response

7条回答
  •  感动是毒
    2020-12-28 18:15

    I had the same bug, and I resolved removing all my annotations @JsonBackReference and @JsonManagedReference, then I put @JsonIdentityInfo in all my clases with relationships Check the Documentation

提交回复
热议问题