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? }
答案 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。
这就是你要找的东西吗?