jackson-dataformat-xml
依赖导致的,下面查看自己项目是否包含此依赖,如果包含的话,可以去掉。@RequestMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
spring-cloud-starter-netflix-eureka-server
中依赖了jackson-dataformat-xml. <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>