序列化规则
排除默认的jackson,使用gson
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
</exclusion>
</exclusions>
</dependency>
或者序列化对象指定 @JsonProperty
PREVIOUSSpringCloud入门
NEXTSqli Labs