Grails Version: 3.2.7
Groovy Version: 2.4.7
JVM Version: 1.8.0_111
我创建了2个 Controller 和2个域
第一域:
package beermembers
class First {
String first
static constraints = {
}
}
Seconf域:
package beermembers
class Second {
String second
static constraints = {
}
}
第一 Controller :
package beermembers
class FirstController {
static scaffold = First
def index() {
}
}
第二 Controller
package beermembers
class SecondController {
static scaffold = Second
def index() {
}
}
我正在开始申请,以为会
http://localhost:8080/first/index with CRUD for First domain
http://localhost:8080/second/index with CRUD for Second domain
但在两个网址上都显示“第一的CRUD”。
您能否解释为什么SecondController显示First域信息?
最佳答案
与Grails 3.2.7+兼容的新版本的脚手架插件已发布
使用脚手架版本3.3.1。
这是相关问题https://github.com/grails/grails-core/issues/10520
关于grails - Grails为另一个域生成支架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42682865/