fix(exception): 为全局异常处理器添加隐藏注解,解决SpringBootStarter3.4.x以上版本不兼容问题

This commit is contained in:
2026-02-06 11:34:36 +08:00
parent f6acc5af14
commit c362f70ad3
@@ -17,6 +17,7 @@ package cn.odboy.framework.exception.handler;
import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.core.exceptions.ExceptionUtil;
import cn.odboy.framework.exception.BadRequestException; import cn.odboy.framework.exception.BadRequestException;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
@@ -33,6 +34,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
* @author odboy * @author odboy
*/ */
@Slf4j @Slf4j
@Hidden
@RestControllerAdvice @RestControllerAdvice
public class GlobalExceptionHandler { public class GlobalExceptionHandler {