spring boot - 项目开发时如何将密码设置为只写不读?

45 阅读1分钟

世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。

@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
 private String password;