<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" xmlNamespaceAware="false" xmlValidation="false">
<Context docBase="/app/creditcc/e_service/webapps/E_service/" path="" debug="0" reloadable="true"/>
...
</Host>
若autoDeploy="true",则两次部署web应用程序。
第一次因server.xml中的Context配置而被部署(因为deployOnStartup="true"),
第二次因为autoDeploy="true"而发生自动部署(默认情况下,在没有显示Context的这些属性时,它们的默认值都是true)。
显示设置autoDeploy="false",避免在server.xml中增加Context配置时两次部署相同的web应用程序。
path="",tomcat把web应用程序映射为root URI路径,