Browse Source

Merge branch '2.0.x'

pull/12800/merge
Stephane Nicoll 8 years ago
parent
commit
760b5e8510
  1. 13
      spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java
  2. 6
      spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
  3. 1
      spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerPropertiesTests.java

13
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java

@ -55,11 +55,6 @@ public class ManagementServerProperties implements SecurityPrerequisite { @@ -55,11 +55,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
@NestedConfigurationProperty
private Ssl ssl;
/**
* Add the "X-Application-Context" HTTP header in each response.
*/
private boolean addApplicationContextHeader = false;
/**
* Returns the management port or {@code null} if the
* {@link ServerProperties#getPort() server port} should be used.
@ -99,14 +94,6 @@ public class ManagementServerProperties implements SecurityPrerequisite { @@ -99,14 +94,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
return this.servlet;
}
public boolean getAddApplicationContextHeader() {
return this.addApplicationContextHeader;
}
public void setAddApplicationContextHeader(boolean addApplicationContextHeader) {
this.addApplicationContextHeader = addApplicationContextHeader;
}
/**
* Servlet properties.
*/

6
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

@ -1229,6 +1229,12 @@ @@ -1229,6 +1229,12 @@
"level": "error"
}
},
{
"name": "management.server.add-application-context-header",
"type": "java.lang.Boolean",
"description": "Add the \"X-Application-Context\" HTTP header in each response.",
"defaultValue": false
},
{
"name": "management.shell.auth.jaas.domain",
"type": "java.lang.String",

1
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerPropertiesTests.java

@ -33,7 +33,6 @@ public class ManagementServerPropertiesTests { @@ -33,7 +33,6 @@ public class ManagementServerPropertiesTests {
ManagementServerProperties properties = new ManagementServerProperties();
assertThat(properties.getPort()).isNull();
assertThat(properties.getServlet().getContextPath()).isEqualTo("");
assertThat(properties.getAddApplicationContextHeader()).isFalse();
}
@Test

Loading…
Cancel
Save