Skip to content

Instantly share code, notes, and snippets.

@matejuh
Created January 16, 2013 21:11
Show Gist options
  • Save matejuh/4551004 to your computer and use it in GitHub Desktop.
Save matejuh/4551004 to your computer and use it in GitHub Desktop.
Create Spring Roo Hello world project with automatic generated json API.
project --topLevelPackage cz.spring.swagger
persistence setup --database H2_IN_MEMORY --provider HIBERNATE
entity jpa --class cz.spring.swagger.domain.Word
field string --fieldName name --notNull true --unique true
field string --fieldName definition --notNull true
json all
controller all --package cz.spring.swagger.controller
web mvc json all
exit
mvn tomcat:run
curl -i -H "Accept: application/json" http://localhost:8080/swagger/words
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment