question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

empty swagger-resources with spring-cloud-stream

See original GitHub issue

Issue:

Dependency                  |   Version
------------------------------------------
spring-cloud-stream         | 2.1.0.RELEASE
springfox-swagger2          | 3.0.0-SNAPSHOT
springfox-spring-webflux    | 3.0.0-SNAPSHOT
springfox-swagger-ui        | 3.0.0-SNAPSHOT

When adding spring-cloud-stream as a dependency ,Swagger-ui completely crashes because of /swagger-resources returns [] empty array.

UI Error : Could not render e, see the console.

Can we add manually swagger-resources when they ware empty or how to prevent overriding that swagger-resources?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10

github_iconTop GitHub Comments

3reactions
jgaybjonecommented, May 29, 2019

I solved the problem.

    @Bean
    @ConditionalOnMissingBean
    DocumentationPluginsBootstrapper documentationPluginsBootstrapper(DocumentationPluginsManager documentationPluginsManager,
                                                                      List<RequestHandlerProvider> handlerProviders,
                                                                      DocumentationCache scanned,
                                                                      ApiDocumentationScanner resourceListing,
                                                                      TypeResolver typeResolver,
                                                                      Defaults defaults,
                                                                      PathProvider pathProvider,
                                                                      Environment environment) {
        return new DocumentationPluginsBootstrapper(documentationPluginsManager, handlerProviders, scanned, resourceListing, typeResolver, defaults, pathProvider, environment);
    }
0reactions
stale[bot]commented, Jul 8, 2020

This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring - swagger page is empty, - Stack Overflow
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on ......
Read more >
[Solved]-Swagger UI empty and gives 403-Springboot
Coding example for the question Swagger UI empty and gives 403-Springboot. ... required static resources for swagger in your Spring Security Configuration.
Read more >
Spring Cloud Data Flow Reference Guide
Spring Cloud Data Flow provides tools to create complex topologies for streaming and batch data pipelines. The data pipelines consist of Spring Boot...
Read more >
Microservices API Documentation with Springdoc OpenAPI
Using Springdoc library for generating OpenAPI / Swagger documentation for Spring Boot application and exposing it on Spring Cloud Gateway.
Read more >
OpenAPI 3 Library for spring-boot
OpenAPI 3 Library for spring boot projects. Is based on swagger-ui, to display the OpenAPI description.Generates automatically the OpenAPI ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found