Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 7c17c96

Browse files
committed
Make WebServerFactoryCustomizerBeanPostProcessor registration GraalVM native compliant.
Closes gh-272
1 parent 4a1b519 commit 7c17c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoconfigure-adapter/src/main/java/org/springframework/boot/autoconfigure/web/servlet/ServletWebServerInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ServletWebServerInitializer(ServerProperties serverProperties, WebMvcProp
6868

6969
@Override
7070
public void initialize(GenericApplicationContext context) {
71-
context.registerBean("webServerFactoryCustomizerBeanPostProcessor", WebServerFactoryCustomizerBeanPostProcessor.class);
71+
context.registerBean("webServerFactoryCustomizerBeanPostProcessor", WebServerFactoryCustomizerBeanPostProcessor.class, WebServerFactoryCustomizerBeanPostProcessor::new);
7272
context.registerBean(WebMvcProperties.class, () -> this.webMvcProperties);
7373
context.registerBean(ServletWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar.class, ServletWebServerFactoryAutoConfiguration.BeanPostProcessorsRegistrar::new);
7474
context.registerBean(TomcatServletWebServerFactory.class, () -> new ServletWebServerFactoryConfiguration.EmbeddedTomcat().tomcatServletWebServerFactory(

0 commit comments

Comments
 (0)