当前位置:   article > 正文

Resolved [org.springframework.http.converter.HttpMessageNotReadableException: I/O error while read ._io error while reading input exception is com.tong

io error while reading input exception is com.tongweb.container.connector.cl

Resolved [org.springframework.http.converter.HttpMessageNotReadableException: I/O error while reading input message; nested exception is org.apache.catalina.connector.ClientAbortException: java.io.EOFException: Unexpected EOF read on the socket
 

问题:第一次我 使用Feign 接口传对象 用了 @RequestBody 出现了这个问题

  1. @RequestMapping(value = "/addUser")
  2. User addUser(@RequestBody User user);

解决方法: 将 对象传值 改为 Map传值 !!!!

                在使用对象传值时 ,有些属性为null 很容易造成异常!!!

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号