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
84fafe1d
Commit
84fafe1d
authored
Feb 01, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Illustrate that endpoint expose & exclude take a list
Closes gh-11861
parent
3a7d5953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+7
-6
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
84fafe1d
...
...
@@ -321,23 +321,24 @@ To change which endpoints are exposed, use the following technology-specific `ex
The `expose` property lists the IDs of the endpoints that are exposed. The `exclude`
property lists the IDs of the endpoints that should not be exposed. The `exclude`
property takes precedence over the `expose` property.
property takes precedence over the `expose` property. Both `expose` and `exclude` properties
can be configured with a list of endpoint IDs.
For example, to stop exposing all endpoints over JMX and only expose the `health`
endpoint, use the following property:
For example, to stop exposing all endpoints over JMX and only expose the `health`
and `info`
endpoint
s
, use the following property:
[source,properties,indent=0]
----
management.endpoints.jmx.expose=health
management.endpoints.jmx.expose=health
,info
----
`*` can be used to select all endpoints. For example, to expose everything over HTTP
except the `env`
endpoint
, use the following properties:
except the `env`
and `beans` endpoints
, use the following properties:
[source,properties,indent=0]
----
management.endpoints.web.expose=*
management.endpoints.web.exclude=env
management.endpoints.web.exclude=env
,beans
----
NOTE: If your application is exposed publicly, we strongly recommend that you also
...
...
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