We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I am trying to run use swagger with my custom OAS speficication.
My configuration:
@Configuration class SpringDocsConfiguration { @Bean fun oasRouter() : RouterFunction<ServerResponse> = resources("/**", ClassPathResource("static/")) @Bean fun springDocConfiguration(): SpringDocConfiguration { return SpringDocConfiguration() } @Bean fun springDocConfigProperties(): SpringDocConfigProperties { return SpringDocConfigProperties() } @Bean fun objectMapperProvider(springDocConfigProperties: SpringDocConfigProperties?): ObjectMapperProvider? { return ObjectMapperProvider(springDocConfigProperties) } }
My pom.xml:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.1.2</version> <relativePath/> </parent> ... <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webflux-ui</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-common</artifactId> <version>2.1.0</version> </dependency> ...
My applicatoin.yml:
springdoc: swagger-ui: enabled: true url: /api-docs.yml api-docs: enabled: false
File with api docs is lcoated inr esources folder (src/main/kotlin/resources/static).
When I try to open swagger url, it won't load. Can you please helm me a little? I wasn't able to find guide for my solution.
The text was updated successfully, but these errors were encountered:
@xsmrcek,
Add this bean:
@Bean SpringDocUIConfiguration springDocsUiConfiguration(Optional<SwaggerUiConfigProperties> optionalSwaggerUiConfigProperties){ return new SpringDocUIConfiguration(optionalSwaggerUiConfigProperties); }
Documentation is already updated and will be published very soon.
Sorry, something went wrong.
No branches or pull requests
Hello,
I am trying to run use swagger with my custom OAS speficication.
My configuration:
My pom.xml:
My applicatoin.yml:
File with api docs is lcoated inr esources folder (src/main/kotlin/resources/static).
When I try to open swagger url, it won't load. Can you please helm me a little? I wasn't able to find guide for my solution.
The text was updated successfully, but these errors were encountered: