grails限制方法的提交方式
static allowedMethods = [
startCharging: "POST",
stopCharging: "POST",
billingModel: "POST",
withhold: "POST"
]
startCharging -> 方法名
放置在controller的最上方即可
grails限制方法的提交方式
static allowedMethods = [
startCharging: "POST",
stopCharging: "POST",
billingModel: "POST",
withhold: "POST"
]
startCharging -> 方法名
放置在controller的最上方即可