在拦截器中,我有以下代码:
render(contentType: 'text/json') {
msg 'Message to show'
}
由于未声明变量,因此无法@CompileStatic在此拦截器上添加注释。msg有没有办法以“编译静态”友好的方式编写它?
在拦截器中,我有以下代码:
render(contentType: 'text/json') {
msg 'Message to show'
}
由于未声明变量,因此无法@CompileStatic在此拦截器上添加注释。msg有没有办法以“编译静态”友好的方式编写它?