在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 = {
}
}