前提 因为使用GSON较为顺手的,于是在spring-boot-start-web里将jackson依赖排除了 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <!--移除Jackson 引入Gson--> <exclusions> <exclusion> <groupId