在stackoverFlow上查到下面的方法,親測好使,我用的時候沒用到@JsonManagedReference和裏面的value
|
If you use @JsonBackReference on your getter/setter method in your project more than twice,you should distinguish them with a specific Reference name.Maybe only one 'defaultReference' is allowed in the latest version. e.g in MovementView.class
in User.class
|