Skip to content

Disable warning that springdoc is enabled in production #3144

@iliantetradev

Description

@iliantetradev

Is your feature request related to a problem? Please describe.

Since version 2.18.4 whenever we start our application there are 2 warnings produced:

SpringDoc /swagger-ui.html endpoint is enabled by default. To disable it in production, set the property 'springdoc.swagger-ui.enabled=false'
SpringDoc /v3/api-docs endpoint is enabled by default. To disable it in production, set the property 'springdoc.api-docs.enabled=false'

I cannot find a way to disable them without also disabling swagger

Describe the solution you'd like

If we have explicitly set the properties to enabled the warning shouldn't be printed out

springdoc.api-docs.enabled=true
springdoc.swagger-ui.enabled=true

Describe alternatives you've considered

The alternative would be to remove it from application.properties but that would remove swagger-ui from local runs as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions