grails create-app MyApi --profile rest-api 参考文献: http://guides.grails.org/rest-hibernate/guide/index.html