tomcat启动时显示项目已经部署成功,
[2017-11-16 02:56:44,120] Artifact GXDC:Web exploded: Artifact is deployed successfully [2017-11-16 02:56:44,121] Artifact GXDC:Web exploded: Deploy took 4,169 milliseconds 16-Nov-2017 14:56:49.649 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory F:\tomcat\apache-tomcat-8.0.45\webapps\manager 16-Nov-2017 14:56:49.676 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory F:\tomcat\apache-tomcat-8.0.45\webapps\manager has finished in 26 ms
但是按照路径访问的时候却全是404错误。
解决,原来是我在项目中新建module的facets时,将web资源的路径配置错误,我将路径设置成为了class文件目录。
将其该为web资源路径,问题解决: