【发布时间】:2021-08-09 21:36:02
【问题描述】:
我使用 grails 2.4.4
我在 BuildConfig 中添加了依赖项:
dependencies {
test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
compile "org.grails.plugins:scaffolding:2.1.2"
}
并添加插件:
plugins {
build ":tomcat:7.0.55"
compile ":scaffolding:2.1.2"
compile ':cache:1.1.8'
compile ":asset-pipeline:1.9.9"
runtime ":hibernate4:4.3.6.1" // or ":hibernate:3.6.10.18"
runtime ":database-migration:1.4.0"
runtime ":jquery:1.11.1"
}
创建域人员:
package person
class Person {
static constraints = {
}
String name
}
和控制器:
package person
class PersonController {
static scaffold = Person
}
也尝试使用:static scaffold = true,同样不行。我尝试删除我的包目标。
但在我的网址 (http://localhost:8090/grails-com.learning/person) 中我什么也没看到
没有插件:
【问题讨论】:
-
grails-com.learning是应用的名字吗? -
是的)))))))))
-
我的插件中没有看到支架插件
-
“我没有在我的插件中看到支架插件” - 如果您的意思是在您的
BuildConfig.groovy的plugins{}块中,它确实在您显示的代码中。compile ":scaffolding:2.1.2".
标签: java grails groovy scaffolding