我刚刚将我的 Grails 2 webapp 项目(Grails 后端和 Angular 作为前端)更新到 Grails 3。
我将所有 web-app 文件夹从我的 grails2 项目移动到 src/main/webapp(也在 src/main/resources 中尝试过)文件夹。
现在运行 bootRun --> http://localhost:8080/启动并运行
尝试访问http://localhost:8080/index.html会出错...
我的意思是我无法访问我的 HTML 文件。我收到一个错误:“此应用程序没有 /error 的显式映射,因此您将其视为后备。” 因为我在 URLMappings 中评论了错误重定向。但是,我不明白为什么使用 Grails 3 我的 index.html 无法再访问,而它与具有相同 URLMappings 配置的 Grails2 一起工作。
肯定错过了什么,但不知道是什么?
非常感谢。