Fegin调用报错:Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): token between only allowed regular break if if \r, \n, \t) at [源:(PushbackInputStream);行:1,列:2]
fegin的Gzip 设置压缩配置
会对设置的这些路径下请求返回的进行压缩 ,如果配置在这些下 response 默认就会压缩,正常这样就是前端解压,但是后端调用也就是对于内部fegin的调用,如果在这些路径里,response就会压缩,返回值不解压就会报错
Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): token between only allowed regular break if if \r, \n, \t) at [源:(PushbackInputStream);行:1,列:2]
解决方式一:
fegin配置加上这一句