I am using Spring-boot for java application. I am able to disable the REST API endpoints followed by this. But I want to disable swagger-ui.html for particular profiles. How to do this?
In pom.xml
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.2.2</version>
</dependency>