paypal / resteasy-spring-boot

RESTEasy Spring Boot Starter
Other
188 stars 105 forks source link

Scan every package registered by Spring framework, instead of the whole class-path #69

Open fabiocarvalho777 opened 7 years ago

fabiocarvalho777 commented 7 years ago

The scanning registration method scans the whole classpath when looking for JAX-RS Application sub-class, and that impacts greatly performance during application start-up.

Instead of that, only packages registered to be scanned by Spring framework should be searched when registering JAX-RS Application sub-classes (regardless of them being Spring beans or not).

fabiocarvalho777 commented 7 years ago

Here is a temporary, but functional and complete, solution for this issue (under branch issue_69).

This issue can be implemented only when working on version 3.0.0 though, which should happen when Spring Boot 2.0.0 or RESTEasy 4.0.0 is released.