这种是默认是的方式,但是往往在开发中,并不需要这样的输出。 Enum as Json Object. 使用 @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum Distance { ... }.
確定! 回上一頁