Hi,
This feature will be added on v1.2.12, of springdoc-openapi.
This property helps you disable only the ui.
springdoc.swagger-ui.enabled=false
The following property, will help you disable the api-docs Rest endpoints as well:
springdoc.api-docs.enabled=false