您的位置:首页 > 大数据 > 人工智能

Grails3.3框架 脚手架自动生成Controller和View 标准写法

2017-09-14 15:00 507 查看
官方API3.3文档标准写法:

Examples

An example of enabling "dynamic" scaffolding:
class BookController {
static scaffold = Book  // static scaffold = true  form is not supported in grails 3.0 and above
}
以前的写法1 只能生成controller 不能生成view层
class AirlineController {def scaffold = Airline}
以前的写法2 已经被抛弃
class AirlineController {static scaffold = true}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐