|
|
|
@ -200,7 +200,7 @@ public class GlobalController {
|
|
|
|
|
|
|
|
|
|
if (methodC == null) {
|
|
|
|
|
BaseResponse baseResponse = new BaseResponse();
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "未找到对应的方法!");
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "未实现的资源方法!");
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -236,12 +236,12 @@ public class GlobalController {
|
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
BaseResponse baseResponse = new BaseResponse();
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "方法执必须公开!");
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "私有的资源方法!");
|
|
|
|
|
return baseResponse;
|
|
|
|
|
} catch (InvocationTargetException e) {
|
|
|
|
|
e.getTargetException().printStackTrace();
|
|
|
|
|
BaseResponse baseResponse = new BaseResponse();
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "方法执行错误[" + e.getTargetException().getMessage() + "]");
|
|
|
|
|
baseResponse.addError(ErrorType.BUSINESS_ERROR, "资源方法执行错误[" + e.getTargetException().getMessage() + "]");
|
|
|
|
|
return baseResponse;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|