Java Code Examples for org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory#setSessionTimeout()
The following examples show how to use
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory#setSessionTimeout() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 2
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 3
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 4
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 5
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 6
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }
Example 7
Source File: WebConfiguration.java From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License | 5 votes |
@Bean public ServletWebServerFactory servletContainer(TomcatSslConnectorProperties properties) { TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); tomcat.addAdditionalTomcatConnectors(createSslConnector(properties)); tomcat.setSessionTimeout(Duration.ofMinutes(1)); return tomcat; }