I believe Spring bootstraps
- ContextLoaderListener
- DispatcherServlet
due to instructions
<context:component-scan base-package=" ..... " />
will scan components at application startup (or each time) at runtime.
Is there a way to instruct the compiler (possibly the maven build plugin) to do a one-time static scan of Spring annotated components during build / compilation so as not to check the boot component without WITHOUT using component annotation?
How to reduce load and delay.
source share