Tomcat容器核心逻辑及源码分析 Tomcat架构图 整体架构图 连接器 容器及处理流程 容器 Tomcat的热加载和热部署 热加载和热部署核心原理 在容器的基类ContainerBase类中的模板方法startInternal中会提交一个定时的后台任务ContainerBackgroundProcessorMonitor去监控容器,源码如下: protected synchronized void startInternal() throws LifecycleException { // Start our subordinate components, if any logger = null; getLogger(); Cluster cluster = getClusterInternal(); if (cluster instanceof Lifecycle) { ((Lifecycle) cluster).start(); } Realm realm = getRealmInternal(); if (realm instanceof Lifecycle) { (.... 置顶! 有更新! Tomcat容器核心逻辑及源码分析 Tomcat