Commit 261e41de by 冯支

Merge branch 'dev' into 'master'

dubbo配置修改,全局异常修改打印

See merge request !2
2 parents 02646b24 7ef5ae0e
...@@ -31,7 +31,7 @@ public class DubboConfig { ...@@ -31,7 +31,7 @@ public class DubboConfig {
return factory.builder(OpenApiService.class) return factory.builder(OpenApiService.class)
.check(false) .check(false)
.timeout(30000) .timeout(30000)
.url(SystemProperty.getProperty(OpenAPIConstant.DUBBO_SERVICE_URL)) //.url(SystemProperty.getProperty(OpenAPIConstant.DUBBO_SERVICE_URL))
.build(); .build();
} }
......
...@@ -42,6 +42,8 @@ public class GlobalExceptionHandler { ...@@ -42,6 +42,8 @@ public class GlobalExceptionHandler {
.stream() .stream()
.map(FieldError::getDefaultMessage) .map(FieldError::getDefaultMessage)
.collect(Collectors.toList()); .collect(Collectors.toList());
log.error("参数异常:" + errs);
return ApiErrorMessage.ARGS_NULL.exception(errs).getResultEntity(); return ApiErrorMessage.ARGS_NULL.exception(errs).getResultEntity();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!