我知道如何禁用swagger for production -我只需要在configuration类中添加注释@Profile("!prod")
public class SwaggerConfig { result of adding annotation但结果是,swagger-ui.html在浏览器中仍然可用,只是它是空的。
我正在尝试为我的项目设置多个WebsecurityConfigurerAdapter,其中springboot执行器API使用基本身份验证进行保护,所有其他端点使用JWtAuthentication进行身份验证我使用的是SpringBoot 2.1.5版本@Order(1)public class SecurityConfig extends**/**&qu
我使用以下spring-boot依赖项为我的Spring-boot应用程序生成一个swagger文件: <groupId>io.springfox</groupId>swagger配置类,我已经将它包含在我的应用程序中:@EnableSwagger2
public class SpringFoxConfig