Freemarker.properties详解

    xiaoxiao2021-03-25  110

    classic_compatible=true ##如果变量为null,转化为空字符串,比如做比较的时候按照空字符做比较 whitespace_stripping=true ##去掉多余的空格,非常有用 ##模版更新事件,设置为1秒,正式环境设置为3600秒 #template_update_delay=3600 template_update_delay=1 ##模版更新时间,这里配置是1秒更新一次,正式环境,模版不会改变,可以将这个值设很大,提高效率.就是被这个参数害死了.老是不更新. locale=zh_CN ##中国 default_encoding=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://ju.6miu.com/read-23303.html

    最新回复(0)