Class ManagementServerProperties
java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties
@ConfigurationProperties("management.server")
public class ManagementServerProperties
extends Object
Properties for the management server (e.g. port and path settings).
- Since:
- 2.0.0
- Author:
- Dave Syer, Stephane Nicoll, Vedran Pavic, Moritz Halbritter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable InetAddress
@Nullable Integer
getPort()
Returns the management port ornull
if theserver port
should be used.@Nullable Ssl
getSsl()
void
setAddress
(@Nullable InetAddress address) void
setBasePath
(String basePath) void
Sets the port of the management server, usenull
if theserver port
should be used.void
-
Constructor Details
-
ManagementServerProperties
public ManagementServerProperties()
-
-
Method Details
-
getPort
Returns the management port ornull
if theserver port
should be used.- Returns:
- the port
- See Also:
-
setPort
Sets the port of the management server, usenull
if theserver port
should be used. Set to 0 to use a random port or set to -1 to disable.- Parameters:
port
- the port
-
getAddress
-
setAddress
-
getBasePath
-
setBasePath
-
getSsl
-
setSsl
-