spring-framework / org.springframework.web.servlet.handler / SimpleServletPostProcessor / setUseSharedServletConfig

setUseSharedServletConfig

open fun setUseSharedServletConfig(useSharedServletConfig: Boolean): Unit

Set whether to use the shared ServletConfig object passed in through setServletConfig, if available.

Default is "true". Turn this setting to "false" to pass in a mock ServletConfig object with the bean name as servlet name, holding the current ServletContext.

See Also
#setServletConfig