如何从 Swagger UI 中删除控制器列表
2022-09-01 23:00:01
在控制器上尝试此属性
[ApiExplorerSettings(IgnoreApi = true)]
将属性描述添加到 :@Api
例如:
@Api(value = "Test API Controller", produces = MediaType.APPLICATION_JSON_VALUE, tags = {"test-api-controller"}, description = "Testing API")