classic_
compatible=true ##如果变量为null,转化为空字符串,比如做比较的时候按照空字符做比较
whitespace_strip ping=true ##去掉多余的空格,非常有用
##模版 更新事件,设置为1秒,正式环境设置为3600秒
#template_update_delay=3600
template_update_delay=1 ##模版更新 时间,这里配置是1秒更新 一次,正式环境,模版不会改变, 可以将这个值设很大,提高效率
locale=zh_CN ## 中国
default_encod ing=utf-8 ##编码utf8
url_escaping_charset=utf-8 ##url编码utf8
date_ format=yyyy-MM-dd ##显示日期格式
time_format=HH:mm:Ss ##显示时间格式
datetime_format=yyyy-MM-dd ##显示日期格式
number_format=\#0.\#\#\#\#\# ##数字显示格式hi.
whitespace_strip ping=true ##去掉多余的空格,非常有用
##模版 更新事件,设置为1秒,正式环境设置为3600秒
#template_update_delay=3600
template_update_delay=1 ##模版更新 时间,这里配置是1秒更新 一次,正式环境,模版不会改变, 可以将这个值设很大,提高效率
locale=zh_CN ## 中国
default_encod ing=utf-8 ##编码utf8
url_escaping_charset=utf-8 ##url编码utf8
date_ format=yyyy-MM-dd ##显示日期格式
time_format=HH:mm:Ss ##显示时间格式
datetime_format=yyyy-MM-dd ##显示日期格式
number_format=\#0.\#\#\#\#\# ##数字显示格式hi.
#template_update_delay=1
datetime_format=yyyy-MM-dd HH:mm:ss
date_format=yyyy-MM-dd
time_format=HH:mm:ss
number_format=0.######;
boolean_format=true,false
auto_import="/common/index.ftl" as ui
whitespace_stripping=true
default_encoding=UTF-8
tag_syntax=auto_detect
url_escaping_charset=UTF-8
里面大部分都不解释了,就解释一个,
auto_import="/common/index.ftl" as ui 这个表示每个freemarker的视图页面都会自动引入这个ftl文件。里面定义的就是一些宏,如text文本框,各种form元素
转载于:https://blog.51cto.com/yamei/1125783