锘??xml version="1.0" encoding="utf-8" standalone="yes"?>大胆日韩av,久久99精品久久久久久青青日本
,jk破处视频在线http://www.aygfsteel.com/yangpingyu/category/46557.htmlzh-cnFri, 08 Oct 2010 10:27:22 GMTFri, 08 Oct 2010 10:27:22 GMT60- spring security寮曞彂鐨勮嫢騫叉€濊€?/title><link>http://www.aygfsteel.com/yangpingyu/archive/2010/10/08/333980.html</link><dc:creator>yangpingyu</dc:creator><author>yangpingyu</author><pubDate>Fri, 08 Oct 2010 08:05:00 GMT</pubDate><guid>http://www.aygfsteel.com/yangpingyu/archive/2010/10/08/333980.html</guid><wfw:comment>http://www.aygfsteel.com/yangpingyu/comments/333980.html</wfw:comment><comments>http://www.aygfsteel.com/yangpingyu/archive/2010/10/08/333980.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yangpingyu/comments/commentRss/333980.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yangpingyu/services/trackbacks/333980.html</trackback:ping><description><![CDATA[涓や釜欏圭洰涓兘浣跨敤浜唖pring security瀹夊叏妗嗘灦錛屽緢澶氳祫鏂欓兘鏄粙緇峴pring security鍏蜂綋浣跨敤銆備粖澶╂垜濡傛灉榪樻槸鍐欒繖浜涗笢瑗垮氨鏄懼緱澶氫綑浜嗭紝閭d箞鎴戜粠涓嶅悓鐨勮搴︽潵鎬葷粨鑷繁瀵硅繖涓鏋剁殑涓€浜涜璇嗐€?br />
<br />
棣栧厛鐪嬬湅涓や釜鐤戞儜錛岀劧鍚庢垜浼氶€愭瑙i噴榪欎袱涓枒鎯戙€?br />
<br />
絎竴涓枒鎯戯紝spring security妗嗘灦鏄痵pring鐨勫瓙妗嗘灦錛屾垜灝遍潪甯稿ソ濂噑pring security鍜宻pring鏄浣曡瀺鍚堣搗鏉ワ紝紜垏鐨勮錛宻pring security瀹氫箟鐨勫璞″浣曠撼鍏pring ioc 瀹瑰櫒涓鐞嗐€傜爺絀跺埌鏈€鍚庡叾瀹為兘鏄痵pring鑷韓鐨勪竴浜涚煡璇嗭紝姣斿錛氳嚜瀹氫箟鎵╁睍xml schema錛宻pring ioc鍚姩銆?br />
<br />
絎簩涓枒鎯戯紝spring security濡備綍鎷︽埅鐢ㄦ埛鐨勮姹傘€傝繖閮ㄥ垎鍙互瑙hspring security婧愮爜鍙互寰楀埌絳旀銆?br />
<br />
褰誨簳鎼炴槑鐧界涓€涓枒鎯戜箣鍚庯紝涔熻浣犱互鍚庤嚜宸卞啓涓€涓鏋訛紝灝卞彲浠ュ緢鏂逛究鐨勬暣鍚堝埌spring涓幓浜嗐€傚浜庢鏋跺紑鍙戝伐紼嬪笀鏉ヨ錛屽紑鍙戞柊鐨勬鏋朵箣鍚庤兘鏁村悎spring鏄繀欏葷殑浜嬫儏浜嗭紝姣曠珶spring緇欐垜浠墍甯︽潵鐨勫ソ澶勬槸鍙兂鑰岀煡鐨勩€傝繖涔熸槸鎴戣褰誨簳浜嗚В娓呮鍘熺悊鐨勫姩鍔涙墍鍦ㄣ€傚簾璇濅竴鍫嗭紝榪涘叆涓婚鍚~~~<img src="/CuteSoft_Client/CuteEditor/images/emsmilep.gif" alt="" align="absmiddle" border="0" /><br />
<br />
絎竴涓枒鎯戞渶鍚庢秹鍙婂埌涓や釜鏂歸潰鐨勭煡璇嗭紝spring ioc鍚姩鍜宻pring鍙墿灞晉ml schema銆俿pring ioc鏈変袱涓潪甯擱噸瑕佺殑姒傚康錛宐eanfactory鍜宎pplicationContext錛屽悗鑰呮彁渚涗簡鏇村鏇村己鐨勫姛鑳姐€備負浜嗛伩鍏嶈繃澶氱殑緇嗚妭鐩存帴瑙hbeanfactory鐨勮鍙栬繃紼嬶紝xmlbeanfactory璇誨彇xml鏂囦歡浼氱粡鍘嗗涓嬩袱涓繃紼嬶細1銆侀€氳繃resource鎺ュ彛璇誨彇xml鏂囦歡錛岃漿鎹㈡垚document銆?2銆佷粠document涓В鏋愬嚭bean鐨勯厤緗€傚叿浣撹緇嗚繃紼嬭鍙傜収鏂囩珷錛?a title="spring璇誨彇xml閰嶇疆婧愪唬鐮佸垎鏋? >spring璇誨彇xml閰嶇疆婧愪唬鐮佸垎鏋?/a>錛堣繖綃囨枃绔犱竴瀹氳鍏堢湅鎳傦紝涓嶇劧鍚庨潰寰堥毦緇х畫錛夈€傜湅榪囨垜浠嬬粛澶у鐪嬬殑閭g瘒鏂囩珷涔嬪悗錛屽叾瀹炰篃鏈夋墍浜嗚Вspring鎵╁睍xml schema鏈哄埗浜嗐€傚鏋滆繕涓嶆槸寰堟竻妤氬啀緇撳悎榪欑瘒鏂囩珷錛?a title="鍩轟簬Spring鍙墿灞昐chema鎻愪緵鑷畾涔夐厤緗敮鎸?" >鍩轟簬Spring鍙墿灞昐chema鎻愪緵鑷畾涔夐厤緗敮鎸?/a>銆傛劅瑙夋湁鐐逛笢鎷艱タ鍑戠殑錛屽懙鍛碉紝涓昏鎬曚互鍚庤嚜宸卞繕璁頒簡錛屾墍浠ユ墠鍐欑瘒blog銆?br />
<br />
絎簩涓枒鎯戞垜浠氨鐪嬫簮浠g爜鍚с€?br />
<div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">mapping</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">jcaptchaFilter</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">pattern</span><span style="color: rgb(0, 0, 0);">>/</span><span style="color: rgb(0, 0, 0);">j_spring_security_check</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">pattern</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">mapping</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
<br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">springSecurityFilterChain</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">com.busyCity.web.filter.DelegatingFilterProxy</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">mapping</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">springSecurityFilterChain</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">filter</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">name</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />
</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">pattern</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);"></url-pattern><br />
<dispatcher>FORWARD</dispatcher> <br />
<dispatcher>REQUEST</dispatcher><br />
</filter-mapping></span></div>
web.xml涓厤緗簡<span style="color: rgb(0, 0, 0);">DelegatingFilterProxy</span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">DelegatingFilterProxy</span><span style="color: rgb(0, 0, 0);">璋冪敤</span>FilterChainProxy鐨刣oFilter<br />
<div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><span style="color: rgb(0, 0, 255);"> public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> doFilter(ServletRequest request, ServletResponse response)</span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);"> IOException, ServletException<br />
{<br />
</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(currentPosition </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> additionalFilters.size())<br />
{<br />
</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(FilterChainProxy.logger.isDebugEnabled())<br />
FilterChainProxy.logger.debug((</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuilder()).append(fi.getRequestUrl()).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> reached end of additional filter chain; proceeding with original chain</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).toString());<br />
fi.getChain().doFilter(request, response);<br />
} </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"><br />
{<br />
currentPosition</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">;<br />
Filter nextFilter </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (Filter)additionalFilters.get(currentPosition </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);<br />
</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(FilterChainProxy.logger.isDebugEnabled())<br />
FilterChainProxy.logger.debug((</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuilder()).append(fi.getRequestUrl()).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> at position </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).append(currentPosition).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> of </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).append(additionalFilters.size()).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> in additional filter chain; firing Filter: '</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).append(nextFilter).append(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).toString());<br />
nextFilter.doFilter(request, response, </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">);<br />
}<br />
}</span></div>
榪欎釜鏂規硶灝辨槸寰幆璋冪敤鎴戜滑鐢╤ttp鍛藉悕絀洪棿閰嶇疆鐨勯偅浜涜繃婊ゅ櫒銆傜劧鍚庢牴鎹笉鍚岀殑榪囨護鍣ㄥ鐞嗕笉鍚岀殑鍐呭銆?br />
<br />
<br />
鎴戞弿榪扮殑閮藉緢綆€鍗曪紝涓昏鍘熷洜鏄仛涓褰曪紝浠ュ悗蹇樿浜嗗彲浠ユ牴鎹繖涓€濊礬閲嶆柊鎵懼埌絳旀銆備笉闇€瑕侀噸鏂板紑濮嬬爺絀躲€傚懙鍛點€?br />
<img src ="http://www.aygfsteel.com/yangpingyu/aggbug/333980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yangpingyu/" target="_blank">yangpingyu</a> 2010-10-08 16:05 <a href="http://www.aygfsteel.com/yangpingyu/archive/2010/10/08/333980.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>