Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Grails 的新手,有一个问题:我将环境设置为生产环境并希望创建“新”域变量。我想知道它将存储在数据库或内存中的什么位置?如果在数据库中,我如何将其存储在内存中,反之亦然(在运行时)?
看看这里:
http://grails.1312388.n4.nabble.com/Non-persistent-domain-class-td2336815.html
http://grails.1312388.n4.nabble.com/Best-practice-for-quot-transient-domain-objects-quot-td1389709.html
我应该将瞬态域类放在 grails 应用程序中的什么位置?
默认 grails 应用程序将其存储在“内存”中(在开发模式下运行时),它取决于 DataSource.groovy 设置 url = "jdbc:h2: file :~/data/.h2Dev"
如果是文件,它将存储在文件中。如果是mem,它将存储在内存中