问题描述:Javaweb项目,web.xml中配置的welcome-file 不生效
解决方案:1、确认welcome-file 中的文件存在;
2、确认welcome-file 中文件的路径正确;
3、将WebRoot文件夹改成WebContent,如果welcome-file 中直接写了文件名,Tomcat默认去WebContent下寻找。
问题描述:Javaweb项目,web.xml中配置的welcome-file 不生效
解决方案:1、确认welcome-file 中的文件存在;
2、确认welcome-file 中文件的路径正确;
3、将WebRoot文件夹改成WebContent,如果welcome-file 中直接写了文件名,Tomcat默认去WebContent下寻找。