【发布时间】:2016-04-22 05:29:12
【问题描述】:
static mapWith = "mongo"
我完全不清楚这是什么意思。根据http://grails.github.io/grails-doc/3.0.x/ref/Domain%20Classes/mapWith.html
mapWith
目的
mapWith 静态属性增加了控制域的能力 类被持久化。
示例
class Airport { static mapWith = "none" }我也经历过这个问题 Remove simpledb mapWith by meta programming in dev mode
我想到了在我的 grails 应用程序中,
static mapWith = "mongo"
可能正在使用 mongoDB 插件。 但我仍然不清楚。 我还浏览了这些 stackoverflow 链接:
【问题讨论】: