freemarker.properties的属性文件的配置说明
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 HH:mm:ss?? ##顯示日期格式
number_format=\#0.\#\#\#\#??? ##數字顯示格式
output_encoding=UTF-8
#template_update_delay=1
datetime_format=yyyy-MM-dd HH:mm:ss
date_format=yyyy-MM-dd
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元素。
?
?
?
?
?
?
總結
以上是生活随笔為你收集整理的freemarker.properties的属性文件的配置说明的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: FreeMarker整合Spring 3
- 下一篇: 东方红350液压油什么型号