如何在grails 2.3.0控制器中显示动作

时间:2014-05-10 16:03:56

标签: grails controller action

def show(Human humanInstance) {
    respond humanInstance
    //[Q1] In the above action humanInstance is works like Command object
    //(I read it in grails doc) they said here call the Domain.get(id) but
    //where the line [ Domain.get(id) ] written physically or where it executed when 
    //show call?
}

1 个答案:

答案 0 :(得分:0)

在2.3.0中,为此特定方案调用“get”方法的代码行位于https://github.com/grails/grails-core/blob/v2.3.0/grails-plugin-controllers/src/main/groovy/org/codehaus/groovy/grails/plugins/web/api/ControllersApi.java#L427

这就是你要找的东西吗?