Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
fd1a40d0
Commit
fd1a40d0
authored
Nov 27, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邮件接受账号和标题配置,改为在配置文件中
parent
74de1a65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
GlobalExceptionHandler.java
...iaoqi/security/common/handler/GlobalExceptionHandler.java
+1
-1
PlatformExceptionHandler.java
...oqi/security/common/handler/PlatformExceptionHandler.java
+1
-1
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/handler/GlobalExceptionHandler.java
View file @
fd1a40d0
...
...
@@ -94,7 +94,7 @@ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
response
.
setStatus
(
500
);
logger
.
error
(
ex
.
getMessage
(),
ex
);
Throwable
cause
=
ex
.
getCause
();
if
(
cause
!=
null
&&
cause
.
toString
().
contains
(
"Exception"
))
{
if
(
cause
!=
null
&&
cause
.
toString
().
contains
(
"Exception"
)
&&
!
cause
.
toString
().
contains
(
"UserTokenException"
)
)
{
StringWriter
stringWriter
=
new
StringWriter
();
cause
.
printStackTrace
(
new
PrintWriter
(
stringWriter
));
logger
.
error
(
cause
.
getMessage
(),
ex
);
...
...
ace-common/src/main/java/com/github/wxiaoqi/security/common/handler/PlatformExceptionHandler.java
View file @
fd1a40d0
...
...
@@ -49,7 +49,7 @@ public class PlatformExceptionHandler {
public
ObjectRestResponse
<?>
exceptionHandler
(
Exception
e
){
Throwable
cause
=
e
.
getCause
();
if
(
cause
!=
null
&&
cause
.
toString
().
contains
(
"Exception"
))
{
if
(
cause
!=
null
&&
cause
.
toString
().
contains
(
"Exception"
)
&&
!
cause
.
toString
().
contains
(
"UserTokenException"
)
)
{
StringWriter
stringWriter
=
new
StringWriter
();
cause
.
printStackTrace
(
new
PrintWriter
(
stringWriter
));
log
.
error
(
cause
.
getMessage
(),
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment