标签:result resolve eth app cep char lex err enc
@Order(-1000)
public class LocalExceptionResolver implements HandlerExceptionResolver {
@Override
public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler,
Exception ex) {
return new ModelAndView();
}
private void responseResult(HttpServletResponse response, AppData result) {
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-type", "application/json;charset=UTF-8");
response.setStatus(200);
try {
response.getWriter().write(JSON.toJSONString(result));
} catch (IOException ex) {
}
}
}
标签:result resolve eth app cep char lex err enc
原文地址:https://www.cnblogs.com/lichangyunnianxue/p/9707658.html