springcloud 返回数据不是jsonThis XML file does not appear to have any style information associated with it

tech2025-09-03  53

我这里没有引入因为引入了jackson-dataformat-xml依赖 解决办法:

produces = MediaType.APPLICATION_JSON_UTF8_VALUE

这里用了负载均衡,与端口号无关

最新回复(0)