Differences between action and methods in Grails controllers
问题 As far as I know, if I want to create an action in a controller then I can do it by: class My Controller { def myAction = { println "in my action " } } or I can create it by: class My Controller { def myAction(){ println "in my action " } } Can somebody please tell the difference between the two methodology , or if I have anything wrong with my concept or perception 回答1: The first implementation was defining public closures in the controller, the second is to use public methods. The second