freemarker不支持boolean,直接获取${xxx}boolean的值会出错,可以通过 ${xxx?string('true','false') }来转成字符串,如果布尔值为true,则返回true,否则则false