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