grails - Grails打开空白页没有错误

标签 grails

我问这样一个琐碎的问题很尴尬,但是我已经用尽了所有选择,而Google并没有帮助我。我有以下网址映射代码:

static mappings = {
    "/$controller/$action?/$id?"{
        constraints {
    }
}
"/"(controller:'news', action:'index')
    "500"(view:'/error')
}

和 Controller 类:
def index() {
    redirect(action: 'result')
}
private doRender(Map params = [:].withDefault { [:] }) {
    def viewPath = "/mobile/news/front/front"

    def completeModel = getDefaultModel() + params.model

    render(view: viewPath,
            model: completeModel)
}

GSP页面存在并且位于以下路径上:views/mobile/news/front/front.gsp运行该应用程序后,我尝试打开以下URL:http://localhost:8080/,并且我得到的是空白页,没有任何错误。我不知道这是什么,而完全缺乏反馈正在杀死我。
我可以检查任何地方的日志吗?而且,有什么明显的我想念的东西吗?

谢谢亚历克斯

最佳答案

当您在计算机上以运行应用程序模式运行Grails时,页面http://localhost:8080/在Firefox中始终为空。它与url映射等无关。

关于grails - Grails打开空白页没有错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15210079/

相关文章:

grails - <g:actionSubmit>和<g:submittButton>之间的区别

Grails 排序 asList() 、 sort()

html - 如何将输入文本框添加到链接参数?

grails - 在grails中创建页面结果列表

tomcat - 在 Tomcat 上部署两个 Grails 应用程序会忽略一个数据源

validation - 在 grails 中验证后处理所有 Controller 方法中错误的最佳方法

Grails 1.1 以及如何信息级别日志记录

grails - MVC中的模型是 View 显示的业务逻辑还是数据

grails - 我可以将参数从 Controller 传递到服务类吗

grails - Taglib 不处理引用外部文件夹的 CSS