【问题标题】:Grails 2.3.7 Intellij Scaffold doesn't create list.gspGrails 2.3.7 Intellij Scaffold 不会创建 list.gsp
【发布时间】:2014-04-24 19:15:06
【问题描述】:

我正在使用 12.1.7 版的 intellij,并在 grails 中创建了一个控制器。

class ExampleController {
    static scaffold = true
    ...
}

现在当我告诉 intellij 生成视图时,它会生成以下内容

  • _form.gsp
  • 创建.gsp
  • edit.gsp
  • index.gsp
  • show.gsp

但是它缺少 list.gsp。这有什么具体原因吗?在使用脚手架之前,我必须先创建一个 list() 函数吗?你会认为列表是默认视图。

【问题讨论】:

    标签: grails intellij-idea


    【解决方案1】:

    grails 2.3.x 中不再有listindex 被视为列表。如果您查看 index.gsp,我相信您会看到一个表格。

    【讨论】:

    • 谢谢你。快把我逼疯了。
    猜你喜欢
    • 2014-06-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-09
    • 1970-01-01
    • 2016-01-30
    • 1970-01-01
    • 2014-05-25
    相关资源
    最近更新 更多