编辑application.yml文件 写下如下内容:
或者使用JsonSerializer,可以自定义某一个字段,使用方法TODO 转自:https://www.cnblogs.com/hhan/p/10727954.html