diff --git a/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java b/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java index 69afdaa3c9..af02d9037f 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java @@ -571,7 +571,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor /** * Sets {@link JettyServerCustomizer}s that will be applied to the {@link Server} - * before it is started. Calling this method will replace any existing configurations. + * before it is started. Calling this method will replace any existing customizers. * @param customizers the Jetty customizers to apply */ public void setServerCustomizers( @@ -581,9 +581,9 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor } /** - * Returns a mutable collection of Jetty {@link Configuration}s that will be applied - * to the {@link WebAppContext} before the server is created. - * @return the Jetty {@link Configuration}s + * Returns a mutable collection of Jetty {@link JettyServerCustomizer}s that will be applied + * to the {@link Server} before the it is created. + * @return the {@link JettyServerCustomizer}s */ public Collection getServerCustomizers() { return this.jettyServerCustomizers; diff --git a/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java b/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java index 030a94b3e7..aa245a36e2 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java @@ -699,7 +699,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto } /** - * Add {@link TomcatContextCustomizer}s that should be added to the Tomcat + * Add {@link TomcatConnectorCustomizer}s that should be added to the Tomcat * {@link Connector}. * @param tomcatConnectorCustomizers the customizers to add */ @@ -712,8 +712,8 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto /** * Returns a mutable collection of the {@link TomcatConnectorCustomizer}s that will be - * applied to the Tomcat {@link Context} . - * @return the listeners that will be applied + * applied to the Tomcat {@link Connector} . + * @return the customizers that will be applied */ public Collection getTomcatConnectorCustomizers() { return this.tomcatConnectorCustomizers;