提交 719e9302 authored 作者: 陈世营's avatar 陈世营

[修改]sentinel 自定义默认异常

上级 a68e7168
......@@ -15,8 +15,6 @@ public class CustomBlockExceptionHandler implements BlockExceptionHandler {
@Override
public void handle(HttpServletRequest request, HttpServletResponse response, BlockException e) throws Exception {
response.setStatus(HttpStatus.OK.value());
System.out.println(MediaType.APPLICATION_JSON.toString());
response.setContentType(MediaType.APPLICATION_JSON_UTF8_VALUE);
PrintWriter out = response.getWriter();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论