Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven webapp原型项目中的欢迎页面设置在哪里_Java_Maven_Jsp_Web.xml_Maven Archetype - Fatal编程技术网

Java Maven webapp原型项目中的欢迎页面设置在哪里

Java Maven webapp原型项目中的欢迎页面设置在哪里,java,maven,jsp,web.xml,maven-archetype,Java,Maven,Jsp,Web.xml,Maven Archetype,我用webapp原型创建了一个Maven项目。/src/main/webapp文件夹中只有一个index.jsp文件。xml文件没有提到任何欢迎文件。没有其他提及或其他任何设置。运行应用程序时,将显示index.jsp页面。此页在哪里设置为欢迎页?引自 默认情况下,服务器按以下顺序查找欢迎文件: 1) web.xml中的欢迎文件列表 2) index.html 3) index.htm 4) index.jsp 如果找不到这些文件,服务器将呈现404错误。引用自 默认情况下,服务器按以下顺序查找

我用webapp原型创建了一个Maven项目。/src/main/webapp文件夹中只有一个index.jsp文件。xml文件没有提到任何欢迎文件。没有其他提及或其他任何设置。运行应用程序时,将显示index.jsp页面。此页在哪里设置为欢迎页?

引自

默认情况下,服务器按以下顺序查找欢迎文件:

1) web.xml中的欢迎文件列表

2) index.html

3) index.htm

4) index.jsp

如果找不到这些文件,服务器将呈现404错误。

引用自

默认情况下,服务器按以下顺序查找欢迎文件:

1) web.xml中的欢迎文件列表

2) index.html

3) index.htm

4) index.jsp

若并没有找到这些文件,服务器将呈现404错误