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
760b5e85
Commit
760b5e85
authored
Apr 24, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
da6a8e86
dc9254c3
Changes
3
Hide 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 @
760b5e85
...
...
@@ -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 {
return
this
.
servlet
;
}
public
boolean
getAddApplicationContextHeader
()
{
return
this
.
addApplicationContextHeader
;
}
public
void
setAddApplicationContextHeader
(
boolean
addApplicationContextHeader
)
{
this
.
addApplicationContextHeader
=
addApplicationContextHeader
;
}
/**
* Servlet properties.
*/
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
760b5e85
...
...
@@ -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"
,
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerPropertiesTests.java
View file @
760b5e85
...
...
@@ -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
...
...
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