类 PortInUseException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.context.embedded.EmbeddedServletContainerException
- org.springframework.boot.context.embedded.PortInUseException
- 所有已实现的接口:
Serializable
public class PortInUseException extends EmbeddedServletContainerException
APortInUseException
is thrown when an embedded servlet container fails to start due to a port already being in use.- 从以下版本开始:
- 1.4.0
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 PortInUseException(int port)
Creates a new port in use exception for the givenport
.
方法概要
构造器详细资料
PortInUseException
public PortInUseException(int port)
Creates a new port in use exception for the givenport
.- 参数:
port
- the port that was in use
方法详细资料
getPort
public int getPort()
Returns the port that was in use.- 返回:
- the port