setApplicationContextFactory

open fun setApplicationContextFactory(applicationContextFactory: ApplicationContextFactory)

Sets the factory that will be called to create the application context. If not set, defaults to a factory that will create AnnotationConfigServletWebServerApplicationContext for servlet web applications, AnnotationConfigReactiveWebServerApplicationContext for reactive web applications, and AnnotationConfigApplicationContext for non-web applications.

Since

2.4.0

Parameters

applicationContextFactory

the factory for the context