我知道如何禁用swagger for production -我只需要在configuration类中添加注释@Profile("!prod"): @Configuration@RequiredArgsConstructorpublic class SwaggerConfig { result of adding annotation但结果是,swagger-ui.html在浏览器中仍然可用,只是它是空的。我想知道有没有办法完全禁用它,这样页面就不会加载了?
我按照springboot example ()使用了一个rest调用,它可以很好地调用api:。
但是后来我尝试调用GiantBomb的api调用,但我一直收到禁止的403错误。虽然我也尝试过其他api调用,但它们也导致了403 (如游戏数据库api调用)。api调用类似于:"halo"&resources=game&field_list=deck,id、图像