Grails 3.0.9 JodaTime格式YML

Grails 3.0.9 JodaTime格式YML,grails,gorm,yaml,grails-plugin,Grails,Gorm,Yaml,Grails Plugin,我想在数据库中使用常规时间表示 在Grails2.x中使用 grails.gorm.default.mapping = { "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentDateTime, class: org.joda.time.DateTime "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentLocalDate,

我想在数据库中使用常规时间表示

在Grails2.x中使用

grails.gorm.default.mapping = {
    "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentDateTime, class: org.joda.time.DateTime
    "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentLocalDate, class: org.joda.time.LocalDate
}
我有一个这样的问题写在YML格式。 请帮助我根据,Grails 3.0.yml似乎不支持用户类型。它使用配置DSL创建这个GORM条目。我还没有找到一种使用YML格式的方法

我只是将application.groovy用于此配置,将application.yml用于所有其他配置(到目前为止)。两个文件都有似乎是可行的


这不是一个很好的解决方案,但我感觉Grails团队非常喜欢YML方法。我了解到,坚持团队喜欢的方法是很好的:)。

应用程序中闭包方法的缺点。groovy是,Jackson目前有一个问题。因此,访问spring boot/env执行器当前会导致Jackson错误。看见