Tomcat配置解析
server.xml解析
1 |
|
startElement
1 |
|
characters
1 |
|
endElement
1 |
|
web.xml解析
Engine – > Host–>content
HostConfig
1 | protected void deployDirectory(ContextName cn, File dir) { |
LifecycleBase
1 | StandardContent |
ContextConfig
lifecycleEvent
1 |
|
configureStart
1 | /** |
webConfig
1 | protected void webConfig() { |
getDefaultWebXmlFragment
1 | private WebXml getDefaultWebXmlFragment(WebXmlParser webXmlParser) { |
标签解析
server
1 |
|
ObjectCreateRule
begin
1 |
|
body
1 | public void body(String namespace, String name, String text) throws Exception { |
end
弹出当前对象
1 |
|
SetPropertiesRule
begin
1 |
|
body
1 | public void body(String namespace, String name, String text) throws Exception { |
end
啥也不干
SetNextRule
1 | begin啥也不干 |
end
1 |
|
Listener
ObjectCreateRule
与server一样,不过这个对象的class是由标签指定的
SetPropertiesRule
SetNextRule
会给Server设置上监听器
- 本文作者: 忘忧症
- 本文链接: https://NepenthesZGW.github.io/2020/09/02/web/tomcat/tomcat配置解析/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!