@JsonIgnore注解可以实现不返回前端字段

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 密码
*/
@JsonIgnore
private String password;

猜你喜欢

转载自www.cnblogs.com/coder-lzh/p/9908319.html