spring security - Difference between two action signatures in grails -


In grails, we can define an action using 2 methods: -

  Def action name () {}  

and

  def actionname = {}  

what is the difference between two styles is? When I tried to put spring security annotation on the action (second genre), then he said it is not applicable to the "safe" field . what does this mean ? Is it due to closing? Grails refer to the use of closures for controller functions in the preceding versions of the Grails Reference Document, itemprop = "text">

Personally, I use methods in all my controllers and this issue has also come with comments like @ safe which work only on methods and Not Closer


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -