提交 b3465d0b 编写于 作者: F fengyw

feat: 异常处理优化

上级 70d3155b
...@@ -22,7 +22,7 @@ import java.util.StringJoiner; ...@@ -22,7 +22,7 @@ import java.util.StringJoiner;
public class HandlerException extends BaseController { public class HandlerException extends BaseController {
@ExceptionHandler({FeignException.class}) @ExceptionHandler({FeignException.class})
@ResponseStatus(HttpStatus.OK) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public Result<String> processBizException(FeignException e) { public Result<String> processBizException(FeignException e) {
String msg = e.getMessage(); String msg = e.getMessage();
if (!StringUtils.hasText(msg)) { if (!StringUtils.hasText(msg)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册