Skip to content

Navigation Menu

Sign up

Hello world example

webdevwilson edited this page Oct 22, 2010 · 8 revisions

crack open your favorite brew

put this in a file 'myfile.groovy'

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

run groovy myfile.groovy

have a sip

Clone this wiki locally

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