【发布时间】:2013-05-22 06:26:05
【问题描述】:
我正在 grails 2.2.2 和 mongoDb 中开发我的第一个应用程序。 但我被困在 “如何从 mongoDb 获取数据并在 .gsp 页面中显示”
【问题讨论】:
标签: mongodb grails grails-2.0 grails-domain-class
我正在 grails 2.2.2 和 mongoDb 中开发我的第一个应用程序。 但我被困在 “如何从 mongoDb 获取数据并在 .gsp 页面中显示”
【问题讨论】:
标签: mongodb grails grails-2.0 grails-domain-class
如果您在应用中使用MongoDB plugin,则使用Get Start 和Map Domain Classes to Mongo Collections。完成映射后,您可以在Views and Templates 中使用controllers 到render the mapped Mongo collection。
【讨论】: