类 ManagementServerProperties
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.ManagementServerProperties
- 所有已实现的接口:
org.springframework.boot.autoconfigure.security.SecurityPrerequisite
@ConfigurationProperties(prefix="management", ignoreUnknownFields=true) public class ManagementServerProperties extends Object implements org.springframework.boot.autoconfigure.security.SecurityPrerequisite
Properties for the management server (e.g. port and path settings).- 另请参阅:
ServerProperties
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
ManagementServerProperties.Security
Security configuration.static class
ManagementServerProperties.SessionCreationPolicy
字段概要
字段 修饰符和类型 字段 说明 static int
ACCESS_OVERRIDE_ORDER
Order before the basic authentication access control provided automatically for the management endpoints.static int
BASIC_AUTH_ORDER
Order applied to the WebSecurityConfigurerAdapter that is used to configure basic authentication for management endpoints.
构造器概要
构造器 构造器 说明 ManagementServerProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
getAddApplicationContextHeader()
InetAddress
getAddress()
String
getContextPath()
Return the context path with no trailing slash (i.e. the '/' root context is represented as the empty string).Integer
getPort()
Returns the management port ornull
if theserver port
should be used.ManagementServerProperties.Security
getSecurity()
org.springframework.boot.context.embedded.Ssl
getSsl()
void
setAddApplicationContextHeader(boolean addApplicationContextHeader)
void
setAddress(InetAddress address)
void
setContextPath(String contextPath)
void
setPort(Integer port)
Sets the port of the management server, usenull
if theserver port
should be used.void
setSsl(org.springframework.boot.context.embedded.Ssl ssl)
字段详细资料
BASIC_AUTH_ORDER
public static final int BASIC_AUTH_ORDER
Order applied to the WebSecurityConfigurerAdapter that is used to configure basic authentication for management endpoints. If you want to add your own authentication for all or some of those endpoints the best thing to do is to add your own WebSecurityConfigurerAdapter with lower order, for instance by usingACCESS_OVERRIDE_ORDER
.- 另请参阅:
- 常量字段值
ACCESS_OVERRIDE_ORDER
public static final int ACCESS_OVERRIDE_ORDER
Order before the basic authentication access control provided automatically for the management endpoints. This is a useful place to put user-defined access rules if you want to override the default access rules for the management endpoints. If you want to keep the default rules for management endpoints but want to override the security for the rest of the application, useSecurityProperties.ACCESS_OVERRIDE_ORDER
instead.- 另请参阅:
- 常量字段值
构造器详细资料
ManagementServerProperties
public ManagementServerProperties()
方法详细资料
getPort
public Integer getPort()
Returns the management port ornull
if theserver port
should be used.- 返回:
- the port
- 另请参阅:
setPort(Integer)
setPort
public void setPort(Integer port)
Sets the port of the management server, usenull
if theserver port
should be used. To disable use 0.- 参数:
port
- the port
getSsl
public org.springframework.boot.context.embedded.Ssl getSsl()
setSsl
public void setSsl(org.springframework.boot.context.embedded.Ssl ssl)
getAddress
public InetAddress getAddress()
setAddress
public void setAddress(InetAddress address)
getContextPath
public String getContextPath()
Return the context path with no trailing slash (i.e. the '/' root context is represented as the empty string).- 返回:
- the context path (no trailing slash)
setContextPath
public void setContextPath(String contextPath)
getSecurity
public ManagementServerProperties.Security getSecurity()
getAddApplicationContextHeader
public boolean getAddApplicationContextHeader()
setAddApplicationContextHeader
public void setAddApplicationContextHeader(boolean addApplicationContextHeader)