-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Make GenericApplicationContext the default ApplicationContext class for non-webapp #14590
Comments
The default is currently SpringApplication application = new SpringApplication(ScratchApplication.class);
application.setWebApplicationType(WebApplicationType.NONE);
GenericApplicationContext run = (GenericApplicationContext) application.run(args); Is |
I don't think it was always a |
I've added a comment to #8115. |
GenericApplicationContext
is arguably a better choice these days and all the default webapp context types used by Boot areGenericApplicationContext
, so it would make things (by default) uniform and more predictable. It would simplify the job of anyone trying to addApplicationContextInitializers
with functional bean definitions.The text was updated successfully, but these errors were encountered: