在Spring 3 MVC中怎么动态的让jackson忽略字段

2025-04-06 03:46:36
推荐回答(1个)
回答1:

@OneToOne(targetEntity = User.class)
@JoinColumn(name = "Owner")
@JsonIgnore
private User owner;