springboot-feign接口压缩异常

WARN  org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens; nested exception is com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column: 2]]

 

修改配置文件的值:

feign:
 compression:
  request:
   enabled: false
  response:
   enabled: false

重启就OK了

posted on 2023-06-14 20:57  悄悄的来,匆匆的走  阅读(268)  评论(0编辑  收藏  举报

导航