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 261e41de
authored
Jan 04, 2021
by
冯支
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' into 'master'
dubbo配置修改,全局异常修改打印 See merge request !2
2 parents
02646b24
7ef5ae0e
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 @
261e41d
...
...
@@ -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 @
261e41d
...
...
@@ -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