Skip to content

Incomplete instructions on FAQ #480

Closed
@theoamonteiro

Description

@theoamonteiro

Describe the bug
I tried to follow the recommendations on "What is a proper way to set up Swagger UI to use provided spec.yml?". But my "APPLICATION FAILED TO START" because of a missing bean. The log recommended me to "defining a bean of type 'org.springdoc.core.SpringDocConfigProperties' in your configuration.".

To Reproduce
Steps to reproduce the behavior:

  • spring-boot: 2.2.5.RELEASE
  • org.springdoc:springdoc-openapi-ui:1.2.33

Follow the instructions on FAQ. The application is going to fail to start.

Screenshots
None

Expected behavior
The application should start and use the provided specs

Additional context
To fix is easy enough following the recommendation spring boot printed on the logs and also provide a bean:

@Bean
public SpringDocConfigProperties springDocConfigProperties() {
	return new SpringDocConfigProperties();
}

This should be on the FAQ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions