-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Provide a property to change loadOnStartup for DispatcherServlet. #2481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@philwebb I just want to make sure that the Although Am I wrong? And in the Spring framework document, every example has
I just thought it's sort of recommendation (this could be a wrong assumption). |
The lifecycle with Spring Boot's embedded servlet containers is a little different to WAR based deployments. With WAR deployments, the Servlet creates the application context. With embedded containers, the application context is created first and contains the servlet container. Spring Boot should also ensure that no requests can be processed before the container is fully started. I think the property option could be useful and it's something we can consider for 1.3. |
@philwebb Thanks for the explanation. |
any progress on this? i'd like to preload my dispatcher servlet, too. |
@benneq The issue's currently targeted at 1.4 |
It would be nice to provide a property to change
loadOnStartup
forDispatcherServlet
.In Spring Boot,
loadOnStartup
forDispatcherServlet
is-1
.Is there any reason to use
-1
as default value?The text was updated successfully, but these errors were encountered: