2021
10-28
10-28
SpringBoot应用启动内置Tomcat的过程源码分析
Connector启动过程Connector是Tomcat提供的类。//通过此Connector开始处理请求@OverrideprotectedvoidstartInternal()throwsLifecycleException{//Validatesettingsbeforestartingif(getPortWithOffset()<0){thrownewLifecycleException(sm.getString("coyoteConnector.invalidPort",Integer.valueOf(getPortWithOffset())));}setState(LifecycleState.STARTING);...
继续阅读 >