You have to set up the following configuration in your application.yaml:
application.yaml
springdoc: swagger-ui: try-it-out-enabled: true