首页 > Web开发 > 详细

tomat 欢迎页面设置在WEB-INF目录下时不显示问题

时间:2015-07-12 01:42:19      阅读:1017      评论:0      收藏:0      [点我收藏+]

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>migu</display-name>
<welcome-file-list>
<welcome-file>WEB-INF/view/index.jsp</welcome-file>
<welcome-file>WEB-INF/view/index.jsp</welcome-file>
<welcome-file>WEB-INF/view/index.html</welcome-file>
</welcome-file-list>
</web-app>

windows下 配置为以上后,页面显示404

查明原因为:斜线问题导致

改为

<welcome-file>WEB-INF\view\index.jsp</welcome-file>

tomat 欢迎页面设置在WEB-INF目录下时不显示问题

原文:http://www.cnblogs.com/lionsblog/p/4639690.html

(0)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!