title: How to hide endpoints based on Profiles in Spring Boot and Spring doc?
body: <p>I am working on <code>Spring Boot v2.2.2.RELEASE and SpringDoc UI and Open API Specification OAS3</code> and I found very related question here: <a href="https://github.com/springdoc/springdoc-openapi/issues/201" rel="nofollow noreferrer">https://github.com/springdoc/springdoc-openapi/issues/201</a>.</p>
  
  <p>I've 4 Profiles say Dev, Stage, UAT and Prod and say I've Student API, Employee API and Department API.</p>
  
  <p>I want for UAT and Prod profiles, I want to hide Department API. How can we do not ?</p>