在tomcat中的webapps中新建一个index.html,在浏览器中打localhost:8080/index.html
报404错误,访问不到index.html文件,为什么?
Tomcat中,每一个webapps下的子目录下,必需有webinf目录以及webinf下的web.xml文件
你的index.html要放在WebContent的目录下,就是与WEB-INF同目录
Tomcat中,每一个webapps下的子目录下,必需有webinf目录以及webinf下的web.xml文件:支持