在bootstrap中配置时间
class BootStrap {
def init = { servletContext ->
JSON.registerObjectMarshaller(Date) {
//use any format as you want
return it?.format("yyyy-MM-dd HH:mm:ss")
}
}
def destroy = {
}
}
在bootstrap中配置时间
class BootStrap {
def init = { servletContext ->
JSON.registerObjectMarshaller(Date) {
//use any format as you want
return it?.format("yyyy-MM-dd HH:mm:ss")
}
}
def destroy = {
}
}