Skip to content

Conversation

frantuma
Copy link
Contributor

@frantuma frantuma commented Sep 4, 2019

As mentioned in #3283, since version 2.0.7 default resource scanning behaviour has changed in scenarios where no resource packages or classes are defined; in versions up to 2.0.6 no resources would have been added except the ones defined in custom Application.classes(); since 2.0.7 the whole classpath is instead scanned.

This PR adds a scanner implementation JaxrsApplicationAndResourcePackagesAnnotationScanner which behaves as pre 2.0.7 default mechanism

@frantuma frantuma merged commit 3bfd7cc into master Sep 4, 2019
@frantuma frantuma deleted the ticket-3283 branch September 4, 2019 10:13
@vivekmalhotragithub
Copy link

How do we use this new Scanner? Is there an example usage?

@frantuma
Copy link
Contributor Author

@vivekmalhotragithub programmatic usage is e.g. in this test, otherwise you can configure it via configuration providing full class name io.swagger.v3.jaxrs2.integration.JaxrsApplicationAndResourcePackagesAnnotationScanner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants