可以进入tomcat,但无法登录http://localhost:8080/imooc_sh

来源:1-3 Struts2与Hibernate整合

LytZz

2016-08-03 22:43

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>


http://img.mukewang.com/57a202c00001156e08020054.jpg

写回答 关注

1回答

  • 睡虎卧龙
    2016-08-04 14:05:31

    imooc_sh不能再WEB-INF目录下

使用Struts2+Hibernate开发学生信息管理功能

Strust2+Hibernate整合开发案例,Java Web开发技能更上一层楼

80694 学习 · 797 问题

查看课程

相似问题