Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ef5ae0e
authored
Jan 04, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.dubbo配置修改,全局异常修改打印
1 parent
882b8856
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/com/glsx/config/DubboConfig.java
src/main/java/com/glsx/exception/GlobalExceptionHandler.java
src/main/java/com/glsx/config/DubboConfig.java
View file @
7ef5ae0
...
...
@@ -31,7 +31,7 @@ public class DubboConfig {
return
factory
.
builder
(
OpenApiService
.
class
)
.
check
(
false
)
.
timeout
(
30000
)
.
url
(
SystemProperty
.
getProperty
(
OpenAPIConstant
.
DUBBO_SERVICE_URL
))
//
.url(SystemProperty.getProperty(OpenAPIConstant.DUBBO_SERVICE_URL))
.
build
();
}
...
...
src/main/java/com/glsx/exception/GlobalExceptionHandler.java
View file @
7ef5ae0
...
...
@@ -42,6 +42,8 @@ public class GlobalExceptionHandler {
.
stream
()
.
map
(
FieldError:
:
getDefaultMessage
)
.
collect
(
Collectors
.
toList
());
log
.
error
(
"参数异常:"
+
errs
);
return
ApiErrorMessage
.
ARGS_NULL
.
exception
(
errs
).
getResultEntity
();
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment