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 Tomcat找不到index.html_Java_Maven_Web.xml - Fatal编程技术网

Java Tomcat找不到index.html

Java Tomcat找不到index.html,java,maven,web.xml,Java,Maven,Web.xml,我正在用Spring和AngularJS构建maven项目。 问题是我在src/main/webapp/index.html下得到了index.html 当我试图访问我的应用程序主页时,我总是找不到404。 以下是项目结构: 我还补充说 <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> 看看这个:你把“web.xml”

我正在用Spring和AngularJS构建maven项目。 问题是我在src/main/webapp/index.html下得到了index.html 当我试图访问我的应用程序主页时,我总是找不到404。 以下是项目结构:

我还补充说

<welcome-file-list>
        <welcome-file>index.html</welcome-file>
</welcome-file-list>

看看这个:你把“web.xml”设置到你的索引文件了吗?你用什么URL来访问index.html?你的web.xml看起来像什么?@ItsikMauyhas你能澄清一下吗?如何将web.xml设置为索引文件?@MichaelMarkidis我使用:
localhost:8080/myapp