Grails中新的控制器代码生成

时间:2015-01-22 15:14:25

标签: grails-controller

使用Grails在Controllers中生成代码时,想知道这段代码在做什么:

  

' *' {response eroVCdtCallDetailsInstance,[status:CREATED]}

request.withFormat {
                form multipartForm {
                    flash.message = message(code: 'default.created.message', args: [message(code: 'eroVCdtCallDetails.label', default: 'EroVCdtCallDetails'), eroVCdtCallDetailsInstance.id])
                    redirect eroVCdtCallDetailsInstance
                }
                '*' { respond eroVCdtCallDetailsInstance, [status: CREATED] }
            }

0 个答案:

没有答案