From 18f9dc9b94ffe35dc097395a5e864a12b8f35fe1 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Fri, 3 Nov 2023 12:27:55 +0100 Subject: [PATCH] Document that customizers are not applied to additional connectors Closes gh-38183 --- .../web/embedded/tomcat/TomcatReactiveWebServerFactory.java | 5 ++++- .../web/embedded/tomcat/TomcatServletWebServerFactory.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactory.java index 9d9e78e777c7..34ab4d1b1095 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatReactiveWebServerFactory.java @@ -331,7 +331,10 @@ public Collection> getTomcatProtocolHandlerCu } /** - * Add {@link Connector}s in addition to the default connector, e.g. for SSL or AJP + * Add {@link Connector}s in addition to the default connector, e.g. for SSL or AJP. + *

+ * {@link #getTomcatConnectorCustomizers Connector customizers} are not applied to + * connectors added this way. * @param connectors the connectors to add * @since 2.2.0 */ diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java index 56bf1cc335a2..a32c5305aa29 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java @@ -697,7 +697,10 @@ public Collection> getTomcatProtocolHandlerCu } /** - * Add {@link Connector}s in addition to the default connector, e.g. for SSL or AJP + * Add {@link Connector}s in addition to the default connector, e.g. for SSL or AJP. + *

+ * {@link #getTomcatConnectorCustomizers Connector customizers} are not applied to + * connectors added this way. * @param connectors the connectors to add */ public void addAdditionalTomcatConnectors(Connector... connectors) {