唯一的范本,我可以在Grails中3得到与install-form-fields-templates是create.gsp与edit.gsp从fields-plugin.
有没有机会安装和使用旧的_form.gsp?
字段插件不在build.gradle.那么它现在是grails核心和唯一可能性的一部分吗?
谢谢!
我在旧的Config.groovy中:
grails.gorm.default.mapping = {
id generator = 'identity'
// send only the dirty fields to the database for updating
dynamicUpdate = true
dynamicInsert = true
}
Run Code Online (Sandbox Code Playgroud)
所以我把它放在另外的application.groovy中,但它不会再被尊重了.所有更新都已满,将所有字段发送到数据库,甚至是未更改的字段.
我试着在application.yml中翻译它:
grails:
gorm:
default:
mapping:
id generator: "identity"
dynamicUpdate: true
dynamicInsert: true
Run Code Online (Sandbox Code Playgroud)
......但仍然没有运气.
我采用旧的配置:
grails.gorm.default.constraints = {
'*' (nullable: true, blank: true)
}
Run Code Online (Sandbox Code Playgroud)
......把它放进去application.groovy.
幸运的是它按预期工作.
如何定义这个application.yml?我试过了:
grails:
gorm:
default:
constraints:
'*' (nullable: true, blank: true)
Run Code Online (Sandbox Code Playgroud)
但这会在开始时出错.
Grails 3:尝试通过文档中的示例独立运行war文件:
$ java -Xmx768M -XX:MaxPermSize=256m -jar test-0.1.war
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
no main manifest attribute, in test-0.1.war
Run Code Online (Sandbox Code Playgroud)
那么,我必须开始上哪一门课?
谢谢
关于这个主题:http: //grails.1312388.n4.nabble.com/Grails-2-4-RC1-Script-Upgrade-not-found-td4656743.html
如何手动升级,愿意与前沿玩?
谢谢