Skip to content

Commit 9b5eab6

Browse files
committed
chore: 优化接口默认失败、成功提示
1 parent 9bfde6f commit 9b5eab6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

continew-server/src/main/resources/config/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ continew-starter.web.response:
142142
# 自定义成功响应码(默认:0)
143143
default-success-code: 0
144144
# 自定义成功提示(默认:ok)
145-
default-success-msg: ok
145+
default-success-msg: 操作成功
146146
# 自定义失败响应码(默认:1)
147147
default-error-code: 1
148148
# 自定义失败提示(默认:error)
149-
default-error-msg: error
149+
default-error-msg: 服务器异常,请联系管理员
150150
# 是否将原生异常错误信息填充到状态信息中
151151
origin-exception-using-detail-message: false
152152
# 响应类全名(配置后 response-style 将不再生效)

0 commit comments

Comments
 (0)