Grails登录和URL映射

时间:2014-04-18 18:04:35

标签: grails

我有一个登录主页,但是当我运行项目时,我遇到了这个问题:

  

无法为映射[/(*)/(*)?/(*)?(.(*))?]和参数[{action=authenticate}]创建网址。参数[controller]是必需的,但未指定!

我不知道我的网址映射中缺少什么。我的网址映射包含:

class UrlMappings {

    static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }


        "/homepage" (view: "/layouts/homepage")
        "/"(view:"/index")
        "500"(view:'/error')
    }
}

我试图声明"/homepage/$action?"(controller: "SponsorController", action: "authenticate"),但问题还在继续。

0 个答案:

没有答案