Browse Source

Fix duplicate meta-data for server.session-timeout

Closes gh-3537
pull/3545/head
Stephane Nicoll 11 years ago
parent
commit
db41e0d7d5
  1. 10
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
  2. 1
      spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

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

@ -197,16 +197,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord @@ -197,16 +197,6 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord
this.address = address;
}
/**
* Set the session timeout
* @return the session timeout
* @deprecated since 1.3.0 in favor of {@code session.timeout}.
*/
@Deprecated
public Integer getSessionTimeout() {
return this.session.getTimeout();
}
/**
* Get the session timeout
* @param sessionTimeout the session timeout

1
spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

@ -166,6 +166,7 @@ @@ -166,6 +166,7 @@
"name": "server.session-timeout",
"type": "java.lang.Integer",
"description": "Session timeout in seconds.",
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties",
"deprecation": {
"replacement": "server.session.timeout"
}

Loading…
Cancel
Save