fix(exception): 为全局异常处理器添加隐藏注解,解决SpringBootStarter3.4.x以上版本不兼容问题
This commit is contained in:
+2
@@ -17,6 +17,7 @@ package cn.odboy.framework.exception.handler;
|
||||
|
||||
import cn.hutool.core.exceptions.ExceptionUtil;
|
||||
import cn.odboy.framework.exception.BadRequestException;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
@@ -33,6 +34,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
* @author odboy
|
||||
*/
|
||||
@Slf4j
|
||||
@Hidden
|
||||
@RestControllerAdvice
|
||||
public class GlobalExceptionHandler {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user