檢查 server.xml 文件,如下:
<Host name="localhost" appBase="webapps" deployOnStartup="true"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
appBase可以爲相對 或者絕對路徑。
deployOnStartup="true" 是必須要有的,(Tomcat 官方文檔);