Commit 2c7202f9 authored by fangxinjiang's avatar fangxinjiang

全局异常处理 & 社保副本数

parent 977fd5f2
......@@ -7,7 +7,7 @@ spec: # 资源规范字段
selector: # 选择器
matchLabels: # 匹配标签
app: yifu-social
replicas: 1 # 声明副本数目
replicas: 2 # 声明副本数目
#revisionHistoryLimit: 3 # 保留历史版本
#strategy: # 策略
# rollingUpdate: # 滚动更新
......
......@@ -59,7 +59,7 @@ public class GlobalExceptionHandler {
public R exception(Exception e) {
errorLog( e );
if( null != e.getMessage()){
return R.failed(e.getMessage());
return R.failed(e,e.getMessage());
}else{
return R.failed(e,"系统异常!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment