freemarker数字默认不加逗号

* 在模板中直接加.toString()转化数字为字符串,如 ${num.toString()}  
* 使用?c控制,如 ${num?c}
* 在freemarker配置文件freemarker.properties(在class目录下即可)加number_format=# 
* 在模板中直接加<#setting number_format="#">;
* 通过freemarker.template.Configuration的config.setNumberFormat("#")来设定freemarker对数值的格式化;
原文地址:https://www.cnblogs.com/alwaysy/p/3345083.html