freemarker数字格式化

 1、在模板中直接加.toString()转化数字为字符串,如:${languageList.id.toString()}; 
    2、在freemarker配置文件freemarker.properties加number_format=#或者number_format=0; 
    3、在模板中直接加<#setting number_format="#">或者<#setting number_format="0">,如:<#if AdminLanguagePaginationMsg?exists> 
<#setting number_format="#">
原文地址:https://www.cnblogs.com/master-zxc/p/4810231.html