merge
This commit is contained in:
@@ -91,19 +91,6 @@ public class GlobalExceptionHandler {
|
||||
return JSONObjResult.toJSONObj(stringBuffer.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理运行异常
|
||||
* @param ex
|
||||
* @return
|
||||
*/
|
||||
@ExceptionHandler(value = RuntimeException.class)
|
||||
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
@ResponseBody
|
||||
public JSONObject handlerRuntimeException(RuntimeException ex) {
|
||||
logger.error(ex.getMessage());
|
||||
return JSONObjResult.toJSONObj(ex.getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
* 全部捕获
|
||||
* @param ex
|
||||
|
||||
Reference in New Issue
Block a user