Skip to content
New issue

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

2967: disable DocumentationPluginsBootstrapper if spring-integration-plugin is present #2995

Conversation

dschulten
Copy link
Contributor

What's this PR do/fix?

Fixes #2967

Are there unit tests? If not how should this be manually tested?

Test with https://github.com/springfox/springfox-demos

Any background context you want to provide?

Not all users who have spring-integration on the classpath also use spring-integration-webflux or spring-integration-http. We now postpone bootstrapping only if the SpringIntegrationDocumentationPluginsBootstrapper is in fact on the classpath.

What are the relevant issues?

In order to access the request mappings of spring-integration, the documentation plugins bootstrapper must execute after the spring-integration RequestHandlerMapping beans have been initialized, which happens later than with the plain RequestHandlerMapping beans.

…egration plugin is present, not if spring-integration is present
@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #2995 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2995   +/-   ##
=========================================
  Coverage     94.32%   94.32%           
  Complexity     3239     3239           
=========================================
  Files           364      364           
  Lines          8381     8381           
  Branches        619      619           
=========================================
  Hits           7905     7905           
  Misses          318      318           
  Partials        158      158
Impacted Files Coverage Δ Complexity Δ
.../web/plugins/DocumentationPluginsBootstrapper.java 91.3% <ø> (ø) 10 <0> (ø) ⬇️
...tegrationPluginNotPresentInClassPathCondition.java 44.44% <100%> (ø) 3 <1> (?)

1 similar comment
@codecov
Copy link

codecov bot commented May 16, 2019

Codecov Report

Merging #2995 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2995   +/-   ##
=========================================
  Coverage     94.32%   94.32%           
  Complexity     3239     3239           
=========================================
  Files           364      364           
  Lines          8381     8381           
  Branches        619      619           
=========================================
  Hits           7905     7905           
  Misses          318      318           
  Partials        158      158
Impacted Files Coverage Δ Complexity Δ
.../web/plugins/DocumentationPluginsBootstrapper.java 91.3% <ø> (ø) 10 <0> (ø) ⬇️
...tegrationPluginNotPresentInClassPathCondition.java 44.44% <100%> (ø) 3 <1> (?)

@dilipkrish
Copy link
Member

the documentation plugins bootstrapper must execute after the spring-integration RequestHandlerMapping beans have been initialized

Thanks for the PR @dschulten, it wasn't clear from the PR how disabling this defers the execution. Or is it just not needed in that case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No API Generation with Webflux, Swagger 3.0.0-SNAPSHOT AND spring integration
2 participants