SpringCloud FeignClient 传输对象,discover接受对象为null的解决办法
程序员文章站
2022-07-15 12:58:51
...
SpringCloud FeignClient 传输对象,在服务端接收Object 为null
此时Server&Client端都有配置
@PostMapping(value = "discover/find/user")
User findUser(@RequestBody User user);
以及配置文件中添加
feign: httpclient: enabled: true
但在服务端接收对象依然报错空指针异常
ribbon: eureka: enabled: false im-service: ribbon: listOfServers: http://localhost:8083
ok