Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
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
fangxinjiang
yifu-mvp
Commits
2c7202f9
Commit
2c7202f9
authored
Mar 07, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全局异常处理 & 社保副本数
parent
977fd5f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
yifu-social-deployment.yaml
k8s-bash/yifu-social-deployment.yaml
+1
-1
GlobalExceptionHandler.java
...ifu/common/security/exception/GlobalExceptionHandler.java
+1
-1
No files found.
k8s-bash/yifu-social-deployment.yaml
View file @
2c7202f9
...
@@ -7,7 +7,7 @@ spec: # 资源规范字段
...
@@ -7,7 +7,7 @@ spec: # 资源规范字段
selector
:
# 选择器
selector
:
# 选择器
matchLabels
:
# 匹配标签
matchLabels
:
# 匹配标签
app
:
yifu-social
app
:
yifu-social
replicas
:
1
# 声明副本数目
replicas
:
2
# 声明副本数目
#revisionHistoryLimit: 3 # 保留历史版本
#revisionHistoryLimit: 3 # 保留历史版本
#strategy: # 策略
#strategy: # 策略
# rollingUpdate: # 滚动更新
# rollingUpdate: # 滚动更新
...
...
yifu-common/yifu-common-security/src/main/java/com/yifu/cloud/plus/v1/yifu/common/security/exception/GlobalExceptionHandler.java
View file @
2c7202f9
...
@@ -59,7 +59,7 @@ public class GlobalExceptionHandler {
...
@@ -59,7 +59,7 @@ public class GlobalExceptionHandler {
public
R
exception
(
Exception
e
)
{
public
R
exception
(
Exception
e
)
{
errorLog
(
e
);
errorLog
(
e
);
if
(
null
!=
e
.
getMessage
()){
if
(
null
!=
e
.
getMessage
()){
return
R
.
failed
(
e
.
getMessage
());
return
R
.
failed
(
e
,
e
.
getMessage
());
}
else
{
}
else
{
return
R
.
failed
(
e
,
"系统异常!"
);
return
R
.
failed
(
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