I've switched from classpath scanning of Controller classes to explicitly declaring the beans, but was wondering what else I can do to cut down on the initial startup of a Spring MVC application.
Not knowing the specifics of your project, I would say your best bet is to profile the startup of your Spring MVC application.
%JAVA_HOME%\bin\jvisualvm.exe
from the Sun JDK, if that's what you're using.Have you ever profiled before? You should start profiling when your specific webapp starts loading and stop when it's done, if you know it's your web app that is causing the slowdown.
Otherwise, you should profile your entire web container / app server from start to running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With