我正在grails 2.2.2和mongoDb中开发我的第一个应用程序。
但是我被困在
“如何从mongoDb获取数据并在.gsp页面中显示”
请您参考如下方法:
如果您在应用程序中使用MongoDB plugin,则使用Get Start和Map Domain Classes to Mongo Collections。完成映射后,可以在controllers中使用render the mapped Mongo collection到Views and Templates。
我正在grails 2.2.2和mongoDb中开发我的第一个应用程序。
但是我被困在
“如何从mongoDb获取数据并在.gsp页面中显示”
请您参考如下方法:
如果您在应用程序中使用MongoDB plugin,则使用Get Start和Map Domain Classes to Mongo Collections。完成映射后,可以在controllers中使用render the mapped Mongo collection到Views and Templates。