I am using springdoc UI to generate the documentation of my Java API and want to disable the try it out button (which should actually be the default behavior according to the docs)
I have tried both:
Neither of them seem to have any impact.
I am using spring-boot 3.2.x and springdoc-openapi-starter-webmvc-ui 2.6.0.
@kush parsaniya's comment seems to be right. There is a problem with version 2.6.0
of springdoc-openapi-starter-webmvc-ui
. The issue has also been reported a few months ago. Take a look over here: https://github.com/springdoc/springdoc-openapi/issues/2740.
Please do not downgrade to an older version, as it might pose vulnerabilities. I tried to upgrade to 2.7.0
(latest stable version), and it seems to be working properly.