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).
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).