gpt4 book ai didi

grails - grails 3 url和grails找不到 Controller

转载 作者:行者123 更新时间:2023-12-02 14:41:39 24 4
gpt4 key购买 nike

当我使用grails2时,网址将是

http://localhost:8080/myApp/controllerName

当我使用grails 3。

网址是http://localhost:8080/controllerName

没有myapp了。它是设计的吗?

问题2:在我生成所有带有Restful域的grails之后,它总是说

说明资源路径位置类型
由于“[在[工作副本]中的RequestEnvironment.groovy [在test.environment.manager中[在grails-app / domain中[在测试环境-管理器中]]]]不存在,因此未构建项目。”解决此问题,然后尝试刷新此项目并构建它,因为它可能不一致

它只能编译83%。

最佳答案

No myapp any more. it is designed?



是。默认情况下,根上下文现在为 '/'。如果要覆盖它,可以通过在 grails-app/conf/application.yml中设置上下文路径来实现。
server:
'context-path': '/myApp'

关于grails - grails 3 url和grails找不到 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31360650/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com