Browse Source

Polish 18453c0e

Document new configuration properties and remove redundant code
pull/2907/merge
Andy Wilkinson 11 years ago
parent
commit
d4dfa8d979
  1. 11
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
  2. 3
      spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

11
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

@ -114,10 +114,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord @@ -114,10 +114,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord
return this.undertow;
}
public JspServlet jspServlet() {
return this.jspServlet;
}
public String getContextPath() {
return this.contextPath;
}
@ -455,13 +451,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord @@ -455,13 +451,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord
}
});
factory.addContextCustomizers(new TomcatContextCustomizer() {
@Override
public void customize(Context context) {
context.setBackgroundProcessorDelay(Tomcat.this.backgroundProcessorDelay);
}
});
String remoteIpHeader = getRemoteIpHeader();
String protocolHeader = getProtocolHeader();
if (StringUtils.hasText(remoteIpHeader)

3
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

@ -57,6 +57,9 @@ content into your application; rather pick only the properties that you need. @@ -57,6 +57,9 @@ content into your application; rather pick only the properties that you need.
server.session-timeout= # session timeout in seconds
server.context-parameters.*= # Servlet context init parameters, e.g. server.context-parameters.a=alpha
server.context-path= # the context path, defaults to '/'
server.jsp-servlet.class-name=org.apache.jasper.servlet.JspServlet # The class name of the JSP servlet
server.jsp-servlet.init-parameters.*= # Init parameters used to configure the JSP servlet
server.jsp-servlet.registered=true # Whether or not the JSP servlet is registered
server.servlet-path= # the servlet path, defaults to '/'
server.ssl.enabled=true # if SSL support is enabled
server.ssl.client-auth= # want or need

Loading…
Cancel
Save