我这里没有引入因为引入了jackson-dataformat-xml依赖 解决办法: produces = MediaType.APPLICATION_JSON_UTF8_VALUE 这里用了负载均衡,与端口号无关