springboot默认的json处理为jackson。 如果是全局设置,在application.properties中添加spring.jackson.mapper.sort-properties-alphabetically=true