如何使用grails 2.2.2从mongoDb中检索数据

时间:2013-05-22 06:26:05

标签: mongodb grails grails-2.0 grails-domain-class

我正在使用grails 2.2.2和mongoDb开发我的第一个应用程序。  但我陷入困境  “如何从mongoDb获取数据并在.gsp页面中显示”

1 个答案:

答案 0 :(得分:2)

如果您在应用中使用MongoDB plugin,则Get StartMap Domain Classes to Mongo Collections。完成映射后,您可以在controllers中使用render the mapped Mongo collectionViews and Templates