????2????server.xml?????

??????Tomcat??????????У????Web?????????????Context???????????server.xml?????Context???????JSP??ó?????server.xml???????Host?????????Context???????????

????<Context path="/myapp" reloadable="true" docBase="D:myapp" workDir="D:myappwork"/>

????????path??????·????docBase??JSP??ó????????·????workDir???????????????????????????????????????????????

????3?????????Context???

?????????????????Web???????????????????Tomcat??confcatalinalocalhost???????????XML??????????????£?

????<Context path="/admin" docBase="${catalina.home}/server/webapps/admin" debug="0" privileged="true"></Context>

???????????????????????????ó????Context????????????server.xml?е?Context??????????μ??????????????????????????????????????????xml?????????Tomcat??confcatalinalocalhost????????????£?

?????????????Web??????????webapps???????????л?server.xml???????Context???????Tomcat??conf

????catalinalocalhost?????????xml????????????Tomcat?????????????????

????tomcat????web???????????????????

????1?????????WAR??????????web???????У???????web?????????????$CATALINA_BASE/webapps?????

????2??????web??????????????context?????XML???????????????????$CATALINA_BASE/webapps????????web?????????洢?????????κε????????context????????????????????????web???????????server.xml???????????????????????????????μ?web??????????????Tomcat??

????3???????2??????context??????CATALINA_BASEconfCatalinalocalhost????.????????????2>???Ч??????????????鷢?????2??????????????????.????γ??????????????.

????4???????server.xml??</Host>?????Context?????????????????tomcat???????CATALINA_BASEconfCatalinalocalhost?????????????????.?????????3???????Ч??.???????????ROOT????????С?

?????????????tomcat?????conf/server.xml???????web????????????????????

??????????

????1??????????WEB??÷???webapps?????·????????server.xml?????context?е?docBase?????

????2?????webapps?е?????????У????conf/catalina/localhost??????xml?????

???????webapps??server.xml?е?Host????appBase????????

??????????

????1?????server.xml??Host?????????????????deployXML="false" deployOnStartup="false" autoDeploy="false"

????2?????壺

????deployXML="false": ??????conf/catalina/localhost?μ?xml?????WEB???deployOnStartup="false" : tomcat????????????webapps?μ?????web???autoDeploy="false"??????tomcat??????????????webapps?μ?web?????????????