Skip to content

Commit d119336

Browse files
author
Dave Syer
committed
Explcitly state in docs that Spring Security is required
... if you use management.security.* properties Fixes gh-595
1 parent 5ed4946 commit d119336

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,17 @@ based deployments. If, however, your application runs inside your own data cente
294294
may prefer to expose endpoints using a different HTTP port.
295295

296296
The `management.port` property can be used to change the HTTP port. Since your management
297-
port is often protected by a firewall, and not exposed to the public, you might also
298-
want to disable management security:
297+
port is often protected by a firewall, and not exposed to the public. If you have Spring
298+
Security on the classpath, you might also want to disable management security:
299299

300300
[source,properties,indent=0]
301301
----
302302
management.port=8081
303303
management.security.enabled=false
304304
----
305305

306-
306+
(If you don't have Spring Security on the classpath then there is no need to explicitly
307+
disable the management security in this way, and it might even break the application.)
307308

308309
[[production-ready-customizing-management-server-address]]
309310
=== Customizing the management server address

0 commit comments

Comments
 (0)