Skip to content

Commit 078e542

Browse files
author
Dave Syer
committed
Avoid eager factory bean instantiation for container customizers
1 parent 999748b commit 078e542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainerCustomizerBeanPostProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ private Collection<EmbeddedServletContainerCustomizer> getCustomizers() {
7373
// Look up does not include the parent context
7474
this.customizers = new ArrayList<EmbeddedServletContainerCustomizer>(
7575
this.applicationContext.getBeansOfType(
76-
EmbeddedServletContainerCustomizer.class).values());
76+
EmbeddedServletContainerCustomizer.class, false, false)
77+
.values());
7778
Collections.sort(this.customizers, AnnotationAwareOrderComparator.INSTANCE);
7879
this.customizers = Collections.unmodifiableList(this.customizers);
7980
}

0 commit comments

Comments
 (0)