Commit 5860c7b7 authored by suhuiguang's avatar suhuiguang

1.删除错误信息

parent b83789cc
package com.yeejoin.equipmanage.fegin; package com.yeejoin.equipmanage.fegin;
import com.alibaba.fastjson.JSONObject;
import feign.Response; import feign.Response;
import feign.Util; import feign.Util;
import feign.codec.ErrorDecoder; import feign.codec.ErrorDecoder;
...@@ -20,6 +21,7 @@ public class FeignErrorDecoder implements ErrorDecoder { ...@@ -20,6 +21,7 @@ public class FeignErrorDecoder implements ErrorDecoder {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
throw new RuntimeException(msg); JSONObject object = JSONObject.parseObject(msg);
throw new RuntimeException(object.get("devMessage").toString());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment