|
|
@ -34,10 +34,12 @@ public class WebExceptionResolver implements HandlerExceptionResolver {
|
|
|
|
|
|
|
|
|
|
|
|
// if json
|
|
|
|
// if json
|
|
|
|
boolean isJson = false;
|
|
|
|
boolean isJson = false;
|
|
|
|
HandlerMethod method = (HandlerMethod)handler;
|
|
|
|
if (handler instanceof HandlerMethod) {
|
|
|
|
ResponseBody responseBody = method.getMethodAnnotation(ResponseBody.class);
|
|
|
|
HandlerMethod method = (HandlerMethod)handler;
|
|
|
|
if (responseBody != null) {
|
|
|
|
ResponseBody responseBody = method.getMethodAnnotation(ResponseBody.class);
|
|
|
|
isJson = true;
|
|
|
|
if (responseBody != null) {
|
|
|
|
|
|
|
|
isJson = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// error result
|
|
|
|
// error result
|
|
|
|