你修改了tomcat的server.xml文件,如下
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt"/>
<!-- <Context docBase="ams-admin" path="/ams-admin" reloadable="false" source="org.eclipse.jst.jee.server:ams-admin"/> -->
<!--增加的 path="/虚拟名" docBase="虚拟路径" -->
<Context path="/fileupload" docBase="D:\java\sever\apache-tomcat-8.5.15\webapps\fileupload\" reloadable="true"></Context>
修改了context标签所在的docBase,但是相关的文件夹不存在导致。
例如文件中的fileupload文件不存在,就会报Failed to start component。