Hide ExceptionController in swagger

This commit is contained in:
2023-10-06 15:00:08 +08:00
parent 03534e4fa9
commit 243d7654e7

View File

@@ -1,9 +1,11 @@
package top.fatweb.api.controller package top.fatweb.api.controller
import io.swagger.v3.oas.annotations.Hidden
import jakarta.servlet.http.HttpServletRequest import jakarta.servlet.http.HttpServletRequest
import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController import org.springframework.web.bind.annotation.RestController
@Hidden
@RestController @RestController
@RequestMapping("/error") @RequestMapping("/error")
class ExceptionController { class ExceptionController {