I have a Spring Boot project with next dependency of Springfox:
io.springfox spri
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;