Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.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
Angularjs 具有gradle构建的spring引导应用程序找不到index.html_Angularjs_Gradle_Spring Boot - Fatal编程技术网

Angularjs 具有gradle构建的spring引导应用程序找不到index.html

Angularjs 具有gradle构建的spring引导应用程序找不到index.html,angularjs,gradle,spring-boot,Angularjs,Gradle,Spring Boot,我有一个spring启动应用程序,具有gradle构建 我在main/resources下有static/index.html。当服务器启动时,尝试访问index.html返回404,抱怨找不到URI的映射 有什么见解吗?如果在main/resources中有静态资源,那么它们就放错地方了。它们应该在src/main/resources中,也就是说,index.html文件的路径应该是src/main/resources/static/index.html是的,它就在那里。它位于src/main

我有一个spring启动应用程序,具有gradle构建

我在main/resources下有static/index.html。当服务器启动时,尝试访问index.html返回404,抱怨找不到URI的映射


有什么见解吗?

如果在
main/resources
中有静态资源,那么它们就放错地方了。它们应该在
src/main/resources
中,也就是说,
index.html
文件的路径应该是
src/main/resources/static/index.html

是的,它就在那里。它位于src/main/resources/static/index.html下,但打包后无法访问它