Browse Source

统一异常处理完善

chenwen 3 years ago
parent
commit
878085294a

+ 1 - 1
src/main/java/com/jpsoft/proj/kpi/controller/RequestValidateExceptionHandler.java

@@ -46,7 +46,7 @@ public class RequestValidateExceptionHandler {
 		return RespVOBuilder.error(error.toString());
 	}
 	
-	@ExceptionHandler(BindException.class)
+	@ExceptionHandler(Exception.class)
 	public RespVO otherExceptionHandler(Exception e) {
 		logger.error("服务出错",e);
 		return RespVOBuilder.error("服务出错");