可以進(jìn)入tomcat,但無法登錄http://localhost:8080/imooc_sh
HTTP Status 404 - /imooc_sh/index.jsp
type?Status report
message?/imooc_sh/index.jsp
description?The requested resource is not available.
Apache Tomcat/7.0.52
web.xml配置文件
<?xml?version="1.0"?encoding="UTF-8"?> <web-app?version="3.0"? xmlns="http://java.sun.com/xml/ns/javaee"? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"? xsi:schemaLocation="http://java.sun.com/xml/ns/javaee? http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> ??<display-name></display-name> ??<welcome-file-list> ????<welcome-file>index.jsp</welcome-file> ??</welcome-file-list> ? ??<filter> ????????<filter-name>struts2</filter-name> ????????<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> ????</filter> ????<filter-mapping> ????????<filter-name>struts2</filter-name> ????????<url-pattern>/*</url-pattern> ????</filter-mapping> </web-app>
2016-08-04
imooc_sh不能再WEB-INF目錄下