Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a15319ee
Commit
a15319ee
authored
Apr 20, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Apr 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ManagementServerProperties.addApplicationContextHeader
Closes gh-12926
parent
877c4f70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
ManagementServerProperties.java
.../autoconfigure/web/server/ManagementServerProperties.java
+0
-13
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+6
-0
ManagementServerPropertiesTests.java
...configure/web/server/ManagementServerPropertiesTests.java
+0
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java
View file @
a15319ee
...
@@ -55,11 +55,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
...
@@ -55,11 +55,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
@NestedConfigurationProperty
@NestedConfigurationProperty
private
Ssl
ssl
;
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
* Returns the management port or {@code null} if the
* {@link ServerProperties#getPort() server port} should be used.
* {@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
;
return
this
.
servlet
;
}
}
public
boolean
getAddApplicationContextHeader
()
{
return
this
.
addApplicationContextHeader
;
}
public
void
setAddApplicationContextHeader
(
boolean
addApplicationContextHeader
)
{
this
.
addApplicationContextHeader
=
addApplicationContextHeader
;
}
/**
/**
* Servlet properties.
* Servlet properties.
*/
*/
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
a15319ee
...
@@ -1229,6 +1229,12 @@
...
@@ -1229,6 +1229,12 @@
"level"
:
"error"
"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"
,
"name"
:
"management.shell.auth.jaas.domain"
,
"type"
:
"java.lang.String"
,
"type"
:
"java.lang.String"
,
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerPropertiesTests.java
View file @
a15319ee
...
@@ -33,7 +33,6 @@ public class ManagementServerPropertiesTests {
...
@@ -33,7 +33,6 @@ public class ManagementServerPropertiesTests {
ManagementServerProperties
properties
=
new
ManagementServerProperties
();
ManagementServerProperties
properties
=
new
ManagementServerProperties
();
assertThat
(
properties
.
getPort
()).
isNull
();
assertThat
(
properties
.
getPort
()).
isNull
();
assertThat
(
properties
.
getServlet
().
getContextPath
()).
isEqualTo
(
""
);
assertThat
(
properties
.
getServlet
().
getContextPath
()).
isEqualTo
(
""
);
assertThat
(
properties
.
getAddApplicationContextHeader
()).
isFalse
();
}
}
@Test
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment