only regular white space (\r, \n, \t) is allowed between tokens

Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
 at [Source: (PushbackInputStream); line: 1, column: 2]

only regular white space (\r, \n, \t) is allowed between tokens_第1张图片
该异常是由于Spring Cloud Feign 请求其他微服务时json数据被压缩导致的,可以调整feign配置如下

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

你可能感兴趣的:(经验分享,java,springcloud,feign)