Created
February 11, 2015 17:19
-
-
Save jxc876/7a4de0023f8fa63fdf2e to your computer and use it in GitHub Desktop.
Grails cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run the BootStrap.groovy script within the Grails Console | |
// http://derekmarley.com/2010/10/27/grails-bootstrap-within-the-grails-console/ | |
new BootStrap().init(ctx.servletContext) | |
// Create toString method | |
// http://groovy.codehaus.org/gapi/groovy/transform/ToString.html | |
@ToString // Annotate class | |
foo.toString() // usage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment