<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路徑,