How to hide endpoints from Swagger documentation with Springfox

前端 未结 5 1539
深忆病人
深忆病人 2021-01-04 12:03

I have a Spring Boot project with next dependency of Springfox:


    io.springfox
    spri         


        
5条回答
  •  抹茶落季
    2021-01-04 12:58

    For OpenAPI3 and SpringBoot:
    I used @Hidden annotation on a method of a controller.
    It seems to work both at method level and controller level.

    @Hidden annotation was imported from using:

    import io.swagger.v3.oas.annotations;
    

提交回复
热议问题