Tomcat的使用总结(三)
Server和Service
Tomcat整体结构图
Server
Catalina.load()
里面调用了Server.init()
方法。Catalina.start()
里面调用了Server.start()
方法。
所以我们从Server
的init()
和start()
着手分析。
在分析之前,我们先看看Server有哪些方法:
/**
* A <code>Server</code> element represents the entire Catalina
* servlet container. Its attributes represent the characteristics of
* the servlet container as a whole. A <code>Server</code> may con