Skip to content

Navigation Menu

Sign up

Hello world example

webdevwilson edited this page Oct 22, 2010 · 8 revisions

All you need is groovy...

crack open your favorite brew put this in a file 'myfile.groovy' run groovy myfile.groovy have a sip

 import graffiti.*
 @Grab('com.goodercode:graffiti:1.0-SNAPSHOT')
 @Get('/helloworld')
 def root() {
 'Hello World'
 }
 Graffiti.serve this

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /