org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 null
**
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : “{“timestamp”:“2022-12-07T07:42:27.676+00:00”,“status”:500,“error”:“Internal Server Error”,“path”:”/user/queryAll"}"
最近学习微服务 但我使用restTemplate.postForObject来调用另一个端口的接口时 报如下的错误
80端口方法

8001端口被调用方法

post调用结果

原因
8001被调用接口无法接收到参数 报错
解决
在被动用的接口方法加上@RequestBody注解

再次调用 调用成功

被调用接口日志
