锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人97在线观看视频,三级av在线播放,污视频在线免费观看网站http://www.aygfsteel.com/natlive/category/24881.htmlA long way and dream.zh-cnMon, 13 Aug 2007 18:36:26 GMTMon, 13 Aug 2007 18:36:26 GMT60鑷炕璇懧稦reemarker 鏂囨。錛堜竴錛?/title><link>http://www.aygfsteel.com/natlive/archive/2007/08/13/136286.html</link><dc:creator>鐙傞緳</dc:creator><author>鐙傞緳</author><pubDate>Mon, 13 Aug 2007 01:51:00 GMT</pubDate><guid>http://www.aygfsteel.com/natlive/archive/2007/08/13/136286.html</guid><wfw:comment>http://www.aygfsteel.com/natlive/comments/136286.html</wfw:comment><comments>http://www.aygfsteel.com/natlive/archive/2007/08/13/136286.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/natlive/comments/commentRss/136286.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/natlive/services/trackbacks/136286.html</trackback:ping><description><![CDATA[<p style="FONT-FAMILY: Courier">鑷繁鐨勮嫳璇按騫沖彧鏈変竴綰у崐錛屼負(fù)浜嗗姫鍔涘濂借嫳璇紝鐜板湪涓澶╀竴涓炕璇戯紝鍏堜粠Freemarker鏂囨。寮濮嬶紝鏈変笉瀵圭殑鍦版柟澶氳阿鎸囨鎶涚爾銆?br><br>Create a configuration instance<br>寤虹珛涓涓厤緗疄渚?/p> <p style="FONT-FAMILY: Courier">First you have to create a freemarker.template.Configuration instance and adjust its settings. A Configuration instance is a central place to store the appliction level setting of FreeMarker. Also, it deals with the creation and caching of pre-parsed templates.<br>棣栧厛浣犲繀欏誨緩绔嬩竴涓猣reemarker.template.Configuration綾葷殑瀹炰緥騫惰皟鏁村畠鐨勮緗? 涓涓狢onfiguration綾誨疄渚嬫槸淇濆瓨Freemarker搴旂敤紼嬪簭璁劇疆鐨勪腑蹇冮瑕? 鍚屾牱, 瀹冨喅瀹氱潃棰勭紪璇戞ā鐗堢殑寤虹珛鍜岀紦鍐?</p> <p>Probably you will do it only once at the beginning of the application(possibly servlet) life-cycle:<br>涔熻浣犲彧闇瑕佸湪紼嬪簭寮濮嬫椂,浠呬粎鍙渶璋冪敤涓嬈′笅闈㈢殑浠g爜,騫朵笖鍦ㄧ▼搴忕殑鏁翠釜鐢熷懡鍛ㄦ湡閮藉彲鐢?<br><br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">Configuration cfg </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Configuration();<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Specify the data source where the template files come from.<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> 鎸囧畾妯℃澘鐨勬暟鎹簮<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Here I set a file directory for it:<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> 鍦ㄨ繖閲屾垜璁劇疆涓轟竴涓洰褰?/span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">cfg.setDirectoryForTemplateLoading(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Fil(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/where/you/store/templates</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">));<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Specify how templates will see the data model. This is an advanced topic<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> 鎸囧畾妯℃澘鎬庝箞璇誨彇鏁版嵁妯″瀷(data model). 榪欐槸涓涓渶瑕佷笓闂ㄨ璁虹殑璇濋<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> but just use this:<br></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> 涓嶈繃鐜板湪浣犲彲浠ヨ繖鏍峰仛</span><span style="COLOR: #008000"><br></span><span style="COLOR: #000000">cfg.setObjectWrapper(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> DefaultObjectWrapper());  <br></span></div> <p><span style="FONT-FAMILY: Courier">From now you should use this single configuration instance. Note however that if a system has multiple independent components that use FreeMarker, then of course they will use their own private Configuration instance.<br>鐜板湪寮濮?浣犲氨鍙互浣跨敤榪欎釜Configuration瀹炰緥浜? 濡傛灉涓涓郴緇熸湁澶氫釜妯″潡浣跨敤Freemarker鐨勮瘽, 姣棤鎰忓鐨? 瀹冧滑鏈鍚庝嬌鐢ㄥ畠浠悇鑷鏈夌殑Configuration瀹炰緥.</span> </p> <img src ="http://www.aygfsteel.com/natlive/aggbug/136286.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/natlive/" target="_blank">鐙傞緳</a> 2007-08-13 09:51 <a href="http://www.aygfsteel.com/natlive/archive/2007/08/13/136286.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">乌兰浩特市</a>| <a href="http://" target="_blank">青神县</a>| <a href="http://" target="_blank">江都市</a>| <a href="http://" target="_blank">广南县</a>| <a href="http://" target="_blank">年辖:市辖区</a>| <a href="http://" target="_blank">前郭尔</a>| <a href="http://" target="_blank">会东县</a>| <a href="http://" target="_blank">平山县</a>| <a href="http://" target="_blank">黄山市</a>| <a href="http://" target="_blank">龙陵县</a>| <a href="http://" target="_blank">乡宁县</a>| <a href="http://" target="_blank">浦江县</a>| <a href="http://" target="_blank">鱼台县</a>| <a href="http://" target="_blank">油尖旺区</a>| <a href="http://" target="_blank">济宁市</a>| <a href="http://" target="_blank">鹰潭市</a>| <a href="http://" target="_blank">新郑市</a>| <a href="http://" target="_blank">夏邑县</a>| <a href="http://" target="_blank">万盛区</a>| <a href="http://" target="_blank">淳安县</a>| <a href="http://" target="_blank">嘉鱼县</a>| <a href="http://" target="_blank">靖江市</a>| <a href="http://" target="_blank">太原市</a>| <a href="http://" target="_blank">漾濞</a>| <a href="http://" target="_blank">邮箱</a>| <a href="http://" target="_blank">琼结县</a>| <a href="http://" target="_blank">宜阳县</a>| <a href="http://" target="_blank">方正县</a>| <a href="http://" target="_blank">文山县</a>| <a href="http://" target="_blank">昆山市</a>| <a href="http://" target="_blank">思南县</a>| <a href="http://" target="_blank">宁城县</a>| <a href="http://" target="_blank">都安</a>| <a href="http://" target="_blank">丰顺县</a>| <a href="http://" target="_blank">鸡泽县</a>| <a href="http://" target="_blank">年辖:市辖区</a>| <a href="http://" target="_blank">朔州市</a>| <a href="http://" target="_blank">喜德县</a>| <a href="http://" target="_blank">岑巩县</a>| <a href="http://" target="_blank">富宁县</a>| <a href="http://" target="_blank">合水县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>