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

<?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-INFviewindex.jsp</welcome-file>

原文地址:https://www.cnblogs.com/lionsblog/p/4639690.html