锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲天堂一区在线,亚洲色中文字幕无码AV,精品国产亚洲一区二区三区 http://www.tkk7.com/jlin/zh-cnFri, 09 May 2025 18:19:27 GMTFri, 09 May 2025 18:19:27 GMT60excel涓浣曞皢鏃墮棿鎴寵漿鎹負(fù)鏃ユ湡鏍煎紡http://www.tkk7.com/jlin/archive/2019/03/08/433666.htmlflyflyFri, 08 Mar 2019 05:58:00 GMThttp://www.tkk7.com/jlin/archive/2019/03/08/433666.htmlhttp://www.tkk7.com/jlin/comments/433666.htmlhttp://www.tkk7.com/jlin/archive/2019/03/08/433666.html#Feedback0http://www.tkk7.com/jlin/comments/commentRss/433666.htmlhttp://www.tkk7.com/jlin/services/trackbacks/433666.html浠巐inux緋葷粺涓幏鍙栫殑鏃墮棿鎴充俊鎭氬父涓簃s錛屽皢鍏惰漿鎹㈢殑鍏紡涓猴細(xì)

=TEXT((C4/1000+8*3600)/86400+70*365+19,"yyyy-mm-dd hh:mm:ss")

鍏朵腑C4鍗曞厓鏍兼墍瀛樼殑鏁版嵁涓簃s鍥犳闇瑕侀櫎浠?000

杞崲鍚庣殑緇撴灉濡備笅錛?/p>



fly 2019-03-08 13:58 鍙戣〃璇勮
]]>
java.lang.ClassCastException 涓や釜涓鏍風(fēng)殑綾諱笉鑳藉己杞?/title><link>http://www.tkk7.com/jlin/archive/2019/01/30/433626.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Wed, 30 Jan 2019 03:30:00 GMT</pubDate><guid>http://www.tkk7.com/jlin/archive/2019/01/30/433626.html</guid><wfw:comment>http://www.tkk7.com/jlin/comments/433626.html</wfw:comment><comments>http://www.tkk7.com/jlin/archive/2019/01/30/433626.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jlin/comments/commentRss/433626.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jlin/services/trackbacks/433626.html</trackback:ping><description><![CDATA[<div>緋葷粺鎶ラ敊錛?java.lang.ClassCastException: com.entity.Job cannot be cast to com.entity.Job<br /><br />spring boot 欏圭洰寮曞叆浜?spring鐨刣evtools 緇忓父浼?xì)漶旂敓杩欎釜闂?nbsp; 錛屽綋鎶婅繖涓紩鍏ュ彇娑堝氨涓嶄細(xì)鍑虹幇浜?/div><div></div><div> <span style="white-space:pre"> </span><dependency></div><div>            <groupId>org.springframework.boot</groupId></div><div>            <artifactId>spring-boot-devtools</artifactId></div><div>        </dependency> </div><div></div><div></div><img src ="http://www.tkk7.com/jlin/aggbug/433626.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jlin/" target="_blank">fly</a> 2019-01-30 11:30 <a href="http://www.tkk7.com/jlin/archive/2019/01/30/433626.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁板綍涓嬈afka-manager1.3.3.18 Consumers is not display with kafka2.1.0 versionhttp://www.tkk7.com/jlin/archive/2018/12/13/433545.htmlflyflyThu, 13 Dec 2018 07:36:00 GMThttp://www.tkk7.com/jlin/archive/2018/12/13/433545.htmlhttp://www.tkk7.com/jlin/comments/433545.htmlhttp://www.tkk7.com/jlin/archive/2018/12/13/433545.html#Feedback0http://www.tkk7.com/jlin/comments/commentRss/433545.htmlhttp://www.tkk7.com/jlin/services/trackbacks/433545.html闃呰鍏ㄦ枃

fly 2018-12-13 15:36 鍙戣〃璇勮
]]>
centos7:瀹夎node鍜宯pmhttp://www.tkk7.com/jlin/archive/2018/12/12/433544.htmlflyflyWed, 12 Dec 2018 02:29:00 GMThttp://www.tkk7.com/jlin/archive/2018/12/12/433544.htmlhttp://www.tkk7.com/jlin/comments/433544.htmlhttp://www.tkk7.com/jlin/archive/2018/12/12/433544.html#Feedback0http://www.tkk7.com/jlin/comments/commentRss/433544.htmlhttp://www.tkk7.com/jlin/services/trackbacks/433544.html閫氳繃瀹夎鍖呭畨瑁咃紝鍙互浣跨敤

鍏堜笅杞藉畨瑁呭寘鍒?/usr/local璺緞涓?br />
wget https://npm.taobao.org/mirrors/node/v8.0.0/node-v8.0.0-linux-x64.tar.xz

涓嬭澆瀹屾垚鍚庤В鍘?br />tar -xvf  node-v8.0.0-linux-x64.tar.xz
閲嶅懡鍚嶄負(fù)node
mv node-v8.1.4-linux-x64 node

閰嶇疆鐜鍙橀噺
vim /etc/profile
鍦ㄦ枃浠剁殑鏈鍚庢坊鍔?br />#set for nodejs  
export NODE_HOME=/usr/local/node  
export PATH=$NODE_HOME/bin:$PATH
淇濆瓨閫鍑哄悗鎵ц鏇存柊鍛戒護(hù)
source /etc/profile
濡傛灉涓嶇敓鏁堬紝閲嶅惎緋葷粺灝卞彲浠?br />媯嫻媙ode鍜宯pm鏄惁瀹夎鎴愬姛
node -v
npm -v

fly 2018-12-12 10:29 鍙戣〃璇勮
]]>
鍦╦ava涓啓鍑哄畬緹庣殑鍗曚緥妯″紡錛堣漿錛?/title><link>http://www.tkk7.com/jlin/archive/2018/11/27/433525.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Tue, 27 Nov 2018 14:51:00 GMT</pubDate><guid>http://www.tkk7.com/jlin/archive/2018/11/27/433525.html</guid><wfw:comment>http://www.tkk7.com/jlin/comments/433525.html</wfw:comment><comments>http://www.tkk7.com/jlin/archive/2018/11/27/433525.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jlin/comments/commentRss/433525.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jlin/services/trackbacks/433525.html</trackback:ping><description><![CDATA[<div class="vxnrtbl" id="cnblogs_post_body" style="margin-bottom: 20px; word-break: break-word;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">1. 鍓嶈█</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍗曚緥(Singleton)搴旇鏄紑鍙戣呬滑鏈鐔熸?zhèn)夌殑璁捐妯″紡浜嗗Q屽茍涓斿ソ鍍忎篃鏄渶瀹規(guī)槗瀹炵幇鐨?#8212;—鍩烘湰涓婃瘡涓紑鍙戣呴兘鑳藉闅忔墜鍐欏嚭——浣嗘槸錛岀湡鐨勬槸榪欐牱鍚楋紵</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣滀負(fù)涓涓狫ava寮鍙戣咃紝涔熻浣犺寰楄嚜宸卞鍗曚緥妯″紡鐨勪簡瑙e凡緇忚凍澶熷浜嗐傛垜騫朵笉鎯沖嵄璦鑰稿惉璇翠竴瀹氳繕鏈変綘涓嶇煡閬撶殑——姣曠珶鎴戣嚜宸辯殑浜嗚В涔熺殑紜湁闄愶紝浣嗙┒绔熶綘鑷繁浜嗚В鐨勭▼搴﹀埌搴曟庢牱鍛紵寰涓嬬湅錛屾垜浠竴璧鋒潵鑱婅亰鐪媬</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">2. 浠涔堟槸鍗曚緥錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍗曚緥瀵硅薄鐨勭被蹇呴』淇濊瘉鍙湁涓涓疄渚嬪瓨鍦?#8212;—榪欐槸緇村熀鐧劇涓婂鍗曚緥鐨勫畾涔夛紝榪欎篃鍙互浣滀負(fù)瀵規(guī)剰鍥懼疄鐜板崟渚嬫ā寮忕殑浠g爜榪涜媯楠岀殑鏍囧噯銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">瀵瑰崟渚嬬殑瀹炵幇鍙互鍒嗕負(fù)涓ゅぇ綾?#8212;—鎳掓眽寮忓拰楗挎眽寮忥紝浠栦滑鐨勫尯鍒湪浜庯細(xì)</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><ul style="list-style: none; margin: 0px 0px 10px 30px; padding-left: 0px; font-size: 12px;"><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鎳掓眽寮忥細(xì)鎸囧叏灞鐨勫崟渚嬪疄渚嬪湪絎竴嬈¤浣跨敤鏃舵瀯寤恒?/p></li><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">楗挎眽寮忥細(xì)鎸囧叏灞鐨勫崟渚嬪疄渚嬪湪綾昏杞芥椂鏋勫緩銆?/p></li></ul><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浠庡畠浠殑鍖哄埆涔熻兘鐪嬪嚭鏉ワ紝鏃ュ父鎴戜滑浣跨敤鐨勮緝澶氱殑搴旇鏄噿姹夊紡鐨勫崟渚嬶紝姣曠珶鎸夐渶鍔犺澆鎵嶈兘鍋氬埌璧勬簮鐨勬渶澶у寲鍒╃敤鍢泘</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3. 鎳掓眽寮忓崟渚?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍏堟潵鐪嬩竴涓嬫噿姹夊紡鍗曚緥鐨勫疄鐜版柟寮忋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3.1 綆鍗曠増鏈?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐪嬫渶綆鍗曠殑鍐欐硶Version 1錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Version 1</span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Single1 { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single1 instance; </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single1 getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { instance </span>= <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Single1(); } </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> instance; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鎴栬呭啀榪涗竴姝ワ紝鎶婃瀯閫犲櫒鏀逛負(fù)縐佹湁鐨勶紝榪欐牱鑳藉闃叉琚閮ㄧ殑綾昏皟鐢ㄣ?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Version 1.1</span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Single1 { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single1 instance; </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> Single1() {} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single1 getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { instance </span>= <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Single1(); } </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> instance; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鎴戜豢浣?jīng)璁板緱褰撳垵瀛︽牎鐨勬暀绉戜功灏辨槸杩欎箞鏁欑殑锛?#8212;— 姣忔鑾峰彇instance涔嬪墠鍏堣繘琛屽垽鏂紝濡傛灉instance涓虹┖灝眓ew涓涓嚭鏉ワ紝鍚﹀垯灝辯洿鎺ヨ繑鍥炲凡瀛樺湪鐨刬nstance銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欑鍐欐硶鍦ㄥぇ澶氭暟鐨勬椂鍊欎篃鏄病闂鐨勩傞棶棰樺湪浜庯紝褰撳綰跨▼宸ヤ綔鐨勬椂鍊欙紝濡傛灉鏈夊涓嚎紼嬪悓鏃惰繍琛屽埌if (instance == null)錛岄兘鍒ゆ柇涓簄ull錛岄偅涔堜袱涓嚎紼嬪氨鍚勮嚜浼?xì)鍒涘晦Z竴涓疄渚?#8212;—榪欐牱涓鏉ワ紝灝變笉鏄崟渚嬩簡銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3.2 synchronized鐗堟湰</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">閭f棦鐒跺彲鑳戒細(xì)鍥犱負(fù)澶氱嚎紼嬪鑷撮棶棰橈紝閭d箞鍔犱笂涓涓悓姝ラ攣鍚э紒</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">淇敼鍚庣殑浠g爜濡備笅錛岀浉瀵逛簬Version1.1錛屽彧鏄湪鏂規(guī)硶絳懼悕涓婂鍔犱簡涓涓猻ynchronized錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Version 2 </span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Single2 { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single2 instance; </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> Single2() {} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">synchronized</span><span style="line-height: 1.5 !important;"> Single2 getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { instance </span>= <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Single2(); } </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> instance; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">OK錛屽姞涓妔ynchronized鍏抽敭瀛椾箣鍚庯紝getInstance鏂規(guī)硶灝變細(xì)閿佷笂浜嗐傚鏋滄湁涓や釜綰跨▼錛圱1銆乀2錛夊悓鏃舵墽琛屽埌榪欎釜鏂規(guī)硶鏃訛紝浼?xì)鏈夊叾涓竴涓嚎紼婽1鑾峰緱鍚屾閿侊紝寰椾互緇х畫鎵ц錛岃屽彟涓涓嚎紼婽2鍒欓渶瑕佺瓑寰咃紝褰撶T1鎵ц瀹屾瘯getInstance涔嬪悗錛堝畬鎴愪簡null鍒ゆ柇銆佸璞″垱寤恒佽幏寰楄繑鍥炲間箣鍚庯級錛孴2綰跨▼鎵嶄細(xì)鎵ц鎵ц銆?#8212;—鎵浠ヨ繖绔唬鐮佷篃灝遍伩鍏嶄簡Version1涓紝鍙兘鍑虹幇鍥犱負(fù)澶氱嚎紼嬪鑷村涓疄渚嬬殑鎯呭喌銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣嗘槸錛岃繖縐嶅啓娉曚篃鏈変竴涓棶棰橈細(xì)緇檊itInstance鏂規(guī)硶鍔犻攣錛岃櫧鐒朵細(xì)閬垮厤浜嗗彲鑳戒細(xì)鍑虹幇鐨勫涓疄渚嬮棶棰橈紝浣嗘槸浼?xì)寮哄垑櫃1涔嬪鐨勬墍鏈夌嚎紼嬬瓑寰咃紝瀹為檯涓婁細(xì)瀵圭▼搴忕殑鎵ц鏁堢巼閫犳垚璐熼潰褰卞搷銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3.3 鍙岄噸媯鏌ワ紙Double-Check錛夌増鏈?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">Version2浠g爜鐩稿浜嶸ersion1d浠g爜鐨勬晥鐜囬棶棰橈紝鍏跺疄鏄負(fù)浜嗚В鍐?%鍑犵巼鐨勯棶棰橈紝鑰屼嬌鐢ㄤ簡涓涓?00%鍑虹幇鐨勯槻鎶ょ浘銆傞偅鏈変竴涓紭鍖栫殑鎬濊礬錛屽氨鏄妸100%鍑虹幇鐨勯槻鎶ょ浘錛屼篃鏀逛負(fù)1%鐨勫嚑鐜囧嚭鐜幫紝浣夸箣鍙嚭鐜板湪鍙兘浼?xì)瀵艰嚧澶氫釜瀹炰緥鍑虹幇鐨勫湴鏂广?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——鏈夋病鏈夎繖鏍風(fēng)殑鏂規(guī)硶鍛紵褰撶劧鏄湁鐨勶紝鏀硅繘鍚庣殑浠g爜Vsersion3濡備笅錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Version 3 </span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Single3 { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single3 instance; </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> Single3() {} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single3 getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { </span><span style="color: #0000ff; line-height: 1.5 !important;">synchronized</span> (Single3.<span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;">) { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { instance </span>= <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Single3(); } } } </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> instance; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欎釜鐗堟湰鐨勪唬鐮佺湅璧鋒潵鏈夌偣澶嶆潅錛屾敞鎰忓叾涓湁涓ゆif (instance == null)鐨勫垽鏂紝榪欎釜鍙仛銆庡弻閲嶆鏌?Double-Check銆忋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><ul style="list-style: none; margin: 0px 0px 10px 30px; padding-left: 0px; font-size: 12px;"><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">絎竴涓猧f (instance == null)錛屽叾瀹炴槸涓轟簡瑙e喅Version2涓殑鏁堢巼闂錛屽彧鏈塱nstance涓簄ull鐨勬椂鍊欙紝鎵嶈繘鍏ynchronized鐨勪唬鐮佹——澶уぇ鍑忓皯浜嗗嚑鐜囥?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p></li><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">絎簩涓猧f (instance == null)錛屽垯鏄窡Version2涓鏍鳳紝鏄負(fù)浜嗛槻姝㈠彲鑳藉嚭鐜板涓疄渚嬬殑鎯呭喌銆?/p></li></ul><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">—— 榪欐浠g爜鐪嬭搗鏉ュ凡緇忓畬緹庢棤鐟曚簡銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">—— 褰撶劧錛屽彧鏄庣湅璧鋒潵銆忥紝榪樻槸鏈夊皬姒傜巼鍑虹幇闂鐨勩?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欏紕娓呮涓轟粈涔堣繖閲屽彲鑳藉嚭鐜伴棶棰橈紝棣栧厛錛屾垜浠渶瑕佸紕娓呮鍑犱釜姒傚康錛氬師瀛愭搷浣溿佹寚浠ら噸鎺掋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐭ヨ瘑鐐癸細(xì)浠涔堟槸鍘熷瓙鎿嶄綔錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">綆鍗曟潵璇達(dá)紝鍘熷瓙鎿嶄綔錛坅tomic錛夊氨鏄笉鍙垎鍓茬殑鎿嶄綔錛屽湪璁$畻鏈轟腑錛屽氨鏄寚涓嶄細(xì)鍥犱負(fù)綰跨▼璋冨害琚墦鏂殑鎿嶄綔銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">姣斿錛岀畝鍗曠殑璧嬪兼槸涓涓師瀛愭搷浣滐細(xì)</p><div style="margin: 5px 0px; font-size: 12px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;">m = 6; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 榪欐槸涓師瀛愭搷浣?/span></pre></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍋囧m鍘熷厛鐨勫間負(fù)0錛岄偅涔堝浜庤繖涓搷浣滐紝瑕佷箞鎵ц鎴愬姛m鍙樻垚浜?錛岃涔堟槸娌℃墽琛宮榪樻槸0錛岃屼笉浼?xì)鍑虹幇璇稿m=3榪欑涓棿鎬?#8212;—鍗充嬌鏄湪騫跺彂鐨勭嚎紼嬩腑銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鑰岋紝澹版槑騫惰祴鍊煎氨涓嶆槸涓涓師瀛愭搷浣滐細(xì)</p><div style="margin: 5px 0px; font-size: 12px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #0000ff; line-height: 1.5 !important;">int</span> n = 6; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 榪欎笉鏄竴涓師瀛愭搷浣?/span></pre></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">瀵逛簬榪欎釜璇彞錛岃嚦灝戞湁涓や釜鎿嶄綔錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">①澹版槑涓涓彉閲弉</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">②緇檔璧嬪間負(fù)6</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——榪欐牱灝變細(xì)鏈変竴涓腑闂寸姸鎬侊細(xì)鍙橀噺n宸茬粡琚0鏄庝簡浣嗘槸榪樻病鏈夎璧嬪肩殑鐘舵併?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——榪欐牱錛屽湪澶氱嚎紼嬩腑錛岀敱浜庣嚎紼嬫墽琛岄『搴忕殑涓嶇‘瀹氭э紝濡傛灉涓や釜綰跨▼閮戒嬌鐢╩錛屽氨鍙兘浼?xì)瀵艰嚧涓嵔E沖畾鐨勭粨鏋滃嚭鐜般?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐭ヨ瘑鐐癸細(xì)浠涔堟槸鎸囦護(hù)閲嶆帓錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">綆鍗曟潵璇達(dá)紝灝辨槸璁$畻鏈轟負(fù)浜嗘彁楂樻墽琛屾晥鐜囷紝浼?xì)鍋氱殑涓浜涗紭鍖栵紝鍦ㄤ笉褰卞搷鏈緇堢粨鏋滅殑鎯呭喌涓嬶紝鍙兘浼?xì)瀵逛竴浜涜鍙ョ殑鎵ц欏哄簭榪涜璋冩暣銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">姣斿錛岃繖涓孌典唬鐮侊細(xì)</p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #0000ff; line-height: 1.5 !important;">int</span> a ; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 璇彞1 </span> <span style="line-height: 1.5 !important;"> a </span>= 8 ; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 璇彞2</span> <span style="color: #0000ff; line-height: 1.5 !important;">int</span> b = 9 ; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 璇彞3</span> <span style="color: #0000ff; line-height: 1.5 !important;">int</span> c = a + b ; <span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 璇彞4</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">姝e父鏉ヨ錛屽浜庨『搴忕粨鏋勶紝鎵ц鐨勯『搴忔槸鑷笂鍒頒笅錛屼篃鍗?234銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣嗘槸錛岀敱浜庢寚浠ら噸鎺掔殑鍘熷洜錛屽洜涓轟笉褰卞搷鏈緇堢殑緇撴灉錛屾墍浠ワ紝瀹為檯鎵ц鐨勯『搴忓彲鑳戒細(xì)鍙樻垚3124鎴栬?324銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐢變簬璇彞3鍜?娌℃湁鍘熷瓙鎬х殑闂錛岃鍙?鍜岃鍙?涔熷彲鑳戒細(xì)鎷嗗垎鎴愬師瀛愭搷浣滐紝鍐嶉噸鎺掋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——涔熷氨鏄錛屽浜庨潪鍘熷瓙鎬х殑鎿嶄綔錛屽湪涓嶅獎鍝嶆渶緇堢粨鏋滅殑鎯呭喌涓嬶紝鍏舵媶鍒嗘垚鐨勫師瀛愭搷浣滃彲鑳戒細(xì)琚噸鏂版帓鍒楁墽琛岄『搴忋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">OK錛屼簡瑙d簡鍘熷瓙鎿嶄綔鍜屾寚浠ら噸鎺掔殑姒傚康涔嬪悗錛屾垜浠啀緇х畫鐪媀ersion3浠g爜鐨勯棶棰樸?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓嬮潰榪欐璇濈洿鎺ヤ粠闄堢殦鐨勬枃绔?娣卞叆嫻呭嚭鍗曞疄渚婼INGLETON璁捐妯″紡)涓鍒惰屾潵錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓昏鍦ㄤ簬singleton = new Singleton()榪欏彞錛岃繖騫墮潪鏄竴涓師瀛愭搷浣滐紝浜嬪疄涓婂湪 JVM 涓繖鍙ヨ瘽澶ф鍋氫簡涓嬮潰 3 浠朵簨鎯呫?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">1. 緇?singleton 鍒嗛厤鍐呭瓨</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">2. 璋冪敤 Singleton 鐨勬瀯閫犲嚱鏁版潵鍒濆鍖栨垚鍛樺彉閲忥紝褰㈡垚瀹炰緥</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3. 灝唖ingleton瀵硅薄鎸囧悜鍒嗛厤鐨勫唴瀛樼┖闂達(dá)紙鎵ц瀹岃繖姝?singleton鎵嶆槸闈?null 浜嗭級</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣嗘槸鍦?JVM 鐨勫嵆鏃剁紪璇戝櫒涓瓨鍦ㄦ寚浠ら噸鎺掑簭鐨勪紭鍖栥備篃灝辨槸璇翠笂闈㈢殑絎簩姝ュ拰絎笁姝ョ殑欏哄簭鏄笉鑳戒繚璇佺殑錛屾渶緇堢殑鎵ц欏哄簭鍙兘鏄?1-2-3 涔熷彲鑳芥槸 1-3-2銆傚鏋滄槸鍚庤咃紝鍒欏湪 3 鎵ц瀹屾瘯銆? 鏈墽琛屼箣鍓嶏紝琚嚎紼嬩簩鎶㈠崰浜嗭紝榪欐椂 instance 宸茬粡鏄潪 null 浜嗭紙浣嗗嵈娌℃湁鍒濆鍖栵級錛屾墍浠ョ嚎紼嬩簩浼?xì)鐩存帴杩斿?instance錛岀劧鍚庝嬌鐢紝鐒跺悗欏虹悊鎴愮珷鍦版姤閿欍?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍐嶇◢寰В閲婁竴涓嬶紝灝辨槸璇達(dá)紝鐢變簬鏈変竴涓巌nstance宸茬粡涓嶄負(fù)null浣嗘槸浠嶆病鏈夊畬鎴愬垵濮嬪寲銆忕殑涓棿鐘舵侊紝鑰岃繖涓椂鍊欙紝濡傛灉鏈夊叾浠栫嚎紼嬪垰濂借繍琛屽埌絎竴灞俰f (instance == null)榪欓噷錛岃繖閲岃鍙栧埌鐨刬nstance宸茬粡涓嶄負(fù)null浜嗭紝鎵浠ュ氨鐩存帴鎶婅繖涓腑闂寸姸鎬佺殑instance鎷垮幓鐢ㄤ簡錛屽氨浼?xì)漶旂敓闂銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欓噷鐨勫叧閿湪浜?#8212;—綰跨▼T1瀵筰nstance鐨勫啓鎿嶄綔娌℃湁瀹屾垚錛岀嚎紼婽2灝辨墽琛屼簡璇繪搷浣溿?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3.4 緇堟瀬鐗堟湰錛歷olatile</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">瀵逛簬Version3涓彲鑳藉嚭鐜扮殑闂錛堝綋鐒惰繖縐嶆鐜囧凡緇忛潪甯稿皬浜嗭紝浣嗘瘯绔熻繕鏄湁鐨勫槢~錛夛紝瑙e喅鏂規(guī)鏄細(xì)鍙渶瑕佺粰instance鐨勫0鏄庡姞涓妚olatile鍏抽敭瀛楀嵆鍙紝Version4鐗堟湰錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Version 4 </span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Single4 { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">volatile</span><span style="line-height: 1.5 !important;"> Single4 instance; </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> Single4() {} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> Single4 getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { </span><span style="color: #0000ff; line-height: 1.5 !important;">synchronized</span> (Single4.<span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;">) { </span><span style="color: #0000ff; line-height: 1.5 !important;">if</span> (instance == <span style="color: #0000ff; line-height: 1.5 !important;">null</span><span style="line-height: 1.5 !important;">) { instance </span>= <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Single4(); } } } </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> instance; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">volatile鍏抽敭瀛楃殑涓涓綔鐢ㄦ槸紱佹鎸囦護(hù)閲嶆帓錛屾妸instance澹版槑涓簐olatile涔嬪悗錛屽瀹冪殑鍐欐搷浣滃氨浼?xì)鏈変竴涓唴瀛樺睆闅滐紙浠涔堟槸鍐呭瓨灞忛殰錛燂級錛岃繖鏍鳳紝鍦ㄥ畠鐨勮祴鍊煎畬鎴愪箣鍓嶏紝灝變笉鐢ㄤ細(xì)璋冪敤璇繪搷浣溿?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">娉ㄦ剰錛歷olatile闃繪鐨勪笉singleton = new Singleton()榪欏彞璇濆唴閮╗1-2-3]鐨勬寚浠ら噸鎺掞紝鑰屾槸淇濊瘉浜嗗湪涓涓啓鎿嶄綔錛圼1-2-3]錛夊畬鎴愪箣鍓嶏紝涓嶄細(xì)璋冪敤璇繪搷浣滐紙if (instance == null)錛夈?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——涔熷氨褰誨簳闃叉浜哣ersion3涓殑闂鍙戠敓銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——濂戒簡錛岀幇鍦ㄥ交搴曟病浠涔堥棶棰樹簡鍚э紵</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">濂戒簡錛屽埆绱у紶錛岀殑紜病闂浜嗐傚ぇ鍚嶉紟榧庣殑EventBus涓紝鍏跺叆鍙f柟娉旹ventBus.getDefault()灝辨槸鐢ㄨ繖縐嶆柟娉曟潵瀹炵幇鐨勩?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓嶈繃錛岄潪瑕佹寫鐐瑰埡鐨勮瘽榪樻槸鑳芥寫鍑烘潵鐨勶紝灝辨槸榪欎釜鍐欐硶鏈変簺澶嶆潅浜嗭紝涓嶅浼橀泤銆佺畝媧併?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">4. 楗挎眽寮忓崟渚?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓嬮潰鍐嶈亰浜嗚В涓涓嬮タ姹夊紡鐨勫崟渚嬨?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">濡備笂鎵璇達(dá)紝楗挎眽寮忓崟渚嬫槸鎸囷細(xì)鎸囧叏灞鐨勫崟渚嬪疄渚嬪湪綾昏杞芥椂鏋勫緩鐨勫疄鐜版柟寮忋?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐢變簬綾昏杞界殑榪囩▼鏄敱綾誨姞杞藉櫒錛圕lassLoader錛夋潵鎵ц鐨勶紝榪欎釜榪囩▼涔熸槸鐢盝VM鏉ヤ繚璇佸悓姝ョ殑錛屾墍浠ヨ繖縐嶆柟寮忓厛澶╁氨鏈変竴涓紭鍔?#8212;—鑳藉鍏嶇柅璁稿鐢卞綰跨▼寮曡搗鐨勯棶棰樸?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">4.1 楗挎眽寮忓崟渚嬬殑瀹炵幇鏂瑰紡</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">楗挎眽寮忓崟渚嬬殑瀹炵幇濡備笅錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;">楗挎眽寮忓疄鐜?/span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> SingleB { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">final</span> SingleB INSTANCE = <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> SingleB(); </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> SingleB() {} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span><span style="line-height: 1.5 !important;"> SingleB getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> INSTANCE; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">瀵逛簬涓涓タ姹夊紡鍗曚緥鐨勫啓娉曟潵璇達(dá)紝瀹冨熀鏈笂鏄畬緹庣殑浜嗐?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鎵浠ュ畠鐨勭己鐐逛篃灝卞彧鏄タ姹夊紡鍗曚緥鏈韓鐨勭己鐐規(guī)墍鍦ㄤ簡——鐢變簬INSTANCE鐨勫垵濮嬪寲鏄湪綾誨姞杞芥椂榪涜鐨勶紝鑰岀被鐨勫姞杞芥槸鐢盋lassLoader鏉ュ仛鐨勶紝鎵浠ュ紑鍙戣呮湰鏉ュ浜庡畠鍒濆鍖栫殑鏃舵満灝卞緢闅懼幓鍑嗙‘鎶婃彙錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><ol style="padding-left: 40px;"><li style="list-style-type: decimal;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍙兘鐢變簬鍒濆鍖栫殑澶棭錛岄犳垚璧勬簮鐨勬氮璐?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p></li><li style="list-style-type: decimal;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">濡傛灉鍒濆鍖栨湰韜緷璧栦簬涓浜涘叾浠栨暟鎹紝閭d箞涔熷氨寰堥毦淇濊瘉鍏朵粬鏁版嵁浼?xì)鍦ㄥ畠鍒濆鍖栦箣鍓嶅噯澶囧ソ銆?/p></li></ol><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">褰撶劧錛屽鏋滄墍闇鐨勫崟渚嬪崰鐢ㄧ殑璧勬簮寰堝皯錛屽茍涓斾篃涓嶄緷璧栦簬鍏朵粬鏁版嵁錛岄偅涔堣繖縐嶅疄鐜版柟寮忎篃鏄緢濂界殑銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐭ヨ瘑鐐癸細(xì)浠涔堟椂鍊欐槸綾昏杞芥椂錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍓嶉潰鎻愬埌浜嗗崟渚嬪湪綾昏杞芥椂琚疄渚嬪寲錛岄偅絀剁珶浠涔堟椂鍊欐墠鏄庣被瑁呰澆鏃躲忓憿錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓嶄弗鏍肩殑璇達(dá)紝澶ц嚧鏈夎繖涔堝嚑涓潯浠朵細(xì)瑙﹀彂涓涓被琚姞杞斤細(xì)</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">1. new涓涓璞℃椂</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">2. 浣跨敤鍙嶅皠鍒涘緩瀹冪殑瀹炰緥鏃?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">3. 瀛愮被琚姞杞芥椂錛屽鏋滅埗綾昏繕娌¤鍔犺澆錛屽氨鍏堝姞杞界埗綾?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">4. jvm鍚姩鏃舵墽琛岀殑涓葷被浼?xì)棣栧厛琚姞铦?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">5. 涓浜涘叾浠栫殑瀹炵幇鏂瑰紡</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">5.1 Effective Java 1 —— 闈欐佸唴閮ㄧ被</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">銆奅ffective Java銆嬩竴涔︾殑絎竴鐗堜腑鎺ㄨ崘浜嗕竴涓腑鍐欐硶錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Effective Java 絎竴鐗堟帹鑽愬啓娉?/span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> Singleton { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">class</span><span style="line-height: 1.5 !important;"> SingletonHolder { </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">final</span> Singleton INSTANCE = <span style="color: #0000ff; line-height: 1.5 !important;">new</span><span style="line-height: 1.5 !important;"> Singleton(); } </span><span style="color: #0000ff; line-height: 1.5 !important;">private</span><span style="line-height: 1.5 !important;"> Singleton (){} </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">static</span> <span style="color: #0000ff; line-height: 1.5 !important;">final</span><span style="line-height: 1.5 !important;"> Singleton getInstance() { </span><span style="color: #0000ff; line-height: 1.5 !important;">return</span><span style="line-height: 1.5 !important;"> SingletonHolder.INSTANCE; } }</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欑鍐欐硶闈炲父宸у錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><ul style="list-style: none; margin: 0px 0px 10px 30px; padding-left: 0px; font-size: 12px;"><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">瀵逛簬鍐呴儴綾籗ingletonHolder錛屽畠鏄竴涓タ姹夊紡鐨勫崟渚嬪疄鐜幫紝鍦⊿ingletonHolder鍒濆鍖栫殑鏃跺欎細(xì)鐢盋lassLoader鏉ヤ繚璇佸悓姝ワ紝浣縄NSTANCE鏄竴涓湡·鍗曚緥銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p></li><li style="list-style-type: disc;"><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍚屾椂錛岀敱浜嶴ingletonHolder鏄竴涓唴閮ㄧ被錛屽彧鍦ㄥ閮ㄧ被鐨凷ingleton鐨刧etInstance()涓浣跨敤錛屾墍浠ュ畠琚姞杞界殑鏃舵満涔熷氨鏄湪getInstance()鏂規(guī)硶絎竴嬈¤璋冪敤鐨勬椂鍊欍?/p></li></ul><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">——瀹冨埄鐢ㄤ簡ClassLoader鏉ヤ繚璇佷簡鍚屾錛屽悓鏃跺張鑳借寮鍙戣呮帶鍒剁被鍔犺澆鐨勬椂鏈恒備粠鍐呴儴鐪嬫槸涓涓タ姹夊紡鐨勫崟渚嬶紝浣嗘槸浠庡閮ㄧ湅鏉ワ紝鍙堢殑紜槸鎳掓眽寮忕殑瀹炵幇銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">綆鐩存槸紲炰箮鍏舵妧銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">5.2 Effective Java 2 —— 鏋氫婦</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣犱互涓哄埌榪欏氨綆楀畬浜嗭紵涓嶏紝騫舵病鏈夛紝鍥犱負(fù)鍘夊鐨勫ぇ紲炲張鍙戠幇浜嗗叾浠栫殑鏂規(guī)硶銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">銆奅ffective Java銆嬬殑浣滆呭湪榪欐湰涔︾殑絎簩鐗堝張鎺ㄨ崘浜嗗彟澶栦竴縐嶆柟娉曪紝鏉ョ洿鎺ョ湅浠g爜錛?/p><div style="margin: 5px 0px; font-size: 12px !important;"><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div><pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: "Courier New" !important;"><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> Effective Java 絎簩鐗堟帹鑽愬啓娉?/span> <span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">enum</span><span style="line-height: 1.5 !important;"> SingleInstance { INSTANCE; </span><span style="color: #0000ff; line-height: 1.5 !important;">public</span> <span style="color: #0000ff; line-height: 1.5 !important;">void</span><span style="line-height: 1.5 !important;"> fun1() { </span><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> do something</span> <span style="line-height: 1.5 !important;"> } } </span><span style="color: #008000; line-height: 1.5 !important;">//</span><span style="color: #008000; line-height: 1.5 !important;"> 浣跨敤</span> <span style="line-height: 1.5 !important;"> SingleInstance.INSTANCE.fun1();</span></pre><div style="margin-top: 5px;"><span style="padding-right: 5px; line-height: 1.5 !important;"><a title="澶嶅埗浠g爜" style="color: #1a8bc8; border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="澶嶅埗浠g爜" style="max-width: 900px; height: auto; border: none !important;" /></a></span></div></div><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐪嬪埌浜嗕箞錛熻繖鏄竴涓灇涓劇被鍨?#8230;…榪瀋lass閮戒笉鐢ㄤ簡錛屾瀬綆銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鐢變簬鍒涘緩鏋氫婦瀹炰緥鐨勮繃紼嬫槸綰跨▼瀹夊叏鐨勶紝鎵浠ヨ繖縐嶅啓娉曚篃娌℃湁鍚屾鐨勯棶棰樸?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣滆呭榪欎釜鏂規(guī)硶鐨勮瘎浠鳳細(xì)</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">榪欑鍐欐硶鍦ㄥ姛鑳戒笂涓庡叡鏈夊煙鏂規(guī)硶鐩歌繎錛屼絾鏄畠鏇寸畝媧侊紝鏃犲伩鍦版彁渚涗簡搴忓垪鍖栨満鍒訛紝緇濆闃叉瀵規(guī)瀹炰緥鍖栵紝鍗充嬌鏄湪闈㈠澶嶆潅鐨勫簭鍒楀寲鎴栬呭弽灝勬敾鍑葷殑鏃跺欍傝櫧鐒惰繖涓柟娉曡繕娌℃湁騫挎硾閲囩敤錛屼絾鏄崟鍏冪礌鐨勬灇涓劇被鍨嬪凡緇忔垚涓哄疄鐜癝ingleton鐨勬渶浣蟲柟娉曘?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鏋氫婦鍗曚緥榪欑鏂規(guī)硶闂笘涓浜涳紝璁稿鍒嗘瀽鏂囩珷閮界О瀹冩槸瀹炵幇鍗曚緥鐨勬渶瀹岀編鏂規(guī)硶——鍐欐硶瓚呯駭綆鍗曪紝鑰屼笖鍙堣兘瑙e喅澶ч儴鍒嗙殑闂銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">涓嶈繃鎴戜釜浜鴻涓鴻繖縐嶆柟娉曡櫧鐒跺緢浼樼錛屼絾鏄畠浠嶇劧涓嶆槸瀹岀編鐨?#8212;—姣斿錛屽湪闇瑕佺戶鎵跨殑鍦烘櫙錛屽畠?yōu)兏嶉傜敤浜嗐?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">6. 鎬葷粨</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">OK錛岀湅鍒拌繖閲岋紝浣犺繕浼?xì)瑙夊緱鍗曚緥妯″紡鏄渶綆鍗曠殑璁捐妯″紡浜嗕箞錛熷啀鍥炲ご鐪嬩竴涓嬩綘涔嬪墠浠g爜涓殑鍗曚緥瀹炵幇錛岃寰楁槸鏃犳噲鍙嚮鐨勪箞錛?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鍙兘鎴戜滑鍦ㄥ疄闄呯殑寮鍙戜腑錛屽鍗曚緥鐨勫疄鐜板茍娌℃湁閭d箞涓ユ牸鐨勮姹傘傛瘮濡傦紝鎴戝鏋滆兘淇濊瘉鎵鏈夌殑getInstance閮芥槸鍦ㄤ竴涓嚎紼嬬殑璇濓紝閭e叾瀹炵涓縐嶆渶綆鍗曠殑鏁欑涔︽柟寮忓氨澶熺敤浜嗐傚啀姣斿錛屾湁鏃跺欙紝鎴戠殑鍗曚緥鍙樻垚浜嗗渚嬩篃鍙兘瀵圭▼搴忔病浠涔堝お澶у獎鍝?#8230;…</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">浣嗘槸錛屽鏋滄垜浠兘浜嗚В鏇村鍏朵腑鐨勭粏鑺傦紝閭d箞濡傛灉鍝ぉ紼嬪簭鍑轟簡浜涢棶棰橈紝鎴戜滑璧風(fēng)爜鑳藉涓涓帓鏌ラ棶棰樼殑鐐廣傛棭鐐硅В鍐抽棶棰橈紝灝辮兘鏃╃偣鍥炲鍚冮キ……</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">—— 榪樻湁錛屽畬緹庣殑鏂規(guī)鏄笉瀛樺湪錛屼換浣曟柟寮忛兘浼?xì)鏈変竴涓庡害銆忕殑闂銆傛瘮濡傦紝浣犵殑瑙夊緱浠g爜宸茬粡鏃犳噲鍙嚮浜嗭紝浣嗘槸鍥犱負(fù)浣犵敤鐨勬槸JAVA璇█錛屽彲鑳紺lassLoader鏈変簺BUG鍟?#8230;…浣犵殑浠g爜璋佽繍琛屽湪JVM涓婄殑錛屽彲鑳絁VM鏈韓鏈塀UG鍟?#8230;…浣犵殑浠g爜榪愯鍦ㄦ墜鏈轟笂錛屽彲鑳芥墜鏈虹郴緇熸湁闂鍟?#8230;…浣犵敓媧誨湪榪欎釜瀹囧畽閲岋紝鍙兘瀹囧畽鏈韓鏈変簺BUG鍟?#8230;…</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">鎵浠ワ紝灝藉姏鍋氬埌鑳藉仛鍒扮殑鏈濂藉氨琛屼簡銆?/p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;"> </p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 10px;">—— 鎰熻阿浣犺姳璐逛簡涓嶅皯鏃墮棿鐪嬪埌榪欓噷錛屼絾鎰夸綘娌℃湁瑙夊緱铏氬害銆?/p></div><div style="clear: both;"></div><div class="v331zdh" id="blog_post_info_block" style="margin-top: 20px;"><div class="7hdjnbh" id="BlogPostCategory" style="margin-bottom: 10px; color: #4b4b4b; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; background-color: #ffffff;"></div><div class="jvz73zl" id="EntryTag" style="color: #4b4b4b; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; background-color: #ffffff; margin-top: 0px !important;"></div><div class="7vzd3jb" id="blog_post_info" style="color: #4b4b4b; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; background-color: #ffffff;"></div></div><img src ="http://www.tkk7.com/jlin/aggbug/433525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jlin/" target="_blank">fly</a> 2018-11-27 22:51 <a href="http://www.tkk7.com/jlin/archive/2018/11/27/433525.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>@RequestParam涓嶡PathVariable鐨勫尯鍒紙杞級http://www.tkk7.com/jlin/archive/2018/08/22/433344.htmlflyflyWed, 22 Aug 2018 03:05:00 GMThttp://www.tkk7.com/jlin/archive/2018/08/22/433344.htmlhttp://www.tkk7.com/jlin/comments/433344.htmlhttp://www.tkk7.com/jlin/archive/2018/08/22/433344.html#Feedback0http://www.tkk7.com/jlin/comments/commentRss/433344.htmlhttp://www.tkk7.com/jlin/services/trackbacks/433344.html鍦?a title="Java EE鐭ヨ瘑搴? target="_blank" style="margin: 0px; padding: 0px; color: #000000;">spring MVC涓紝涓よ呯殑浣滅敤閮芥槸灝唕equest閲岀殑鍙傛暟鐨勫肩粦瀹氬埌contorl閲岀殑鏂規(guī)硶鍙傛暟閲岀殑錛屽尯鍒湪浜庯紝URL鍐欐硶涓嶅悓銆?/p>

浣跨敤@RequestParam鏃訛紝URL鏄繖鏍風(fēng)殑錛歨ttp://host:port/path?鍙傛暟鍚?鍙傛暟鍊?br style="margin: 0px; padding: 0px;" />

浣跨敤@PathVariable鏃訛紝URL鏄繖鏍風(fēng)殑錛歨ttp://host:port/path/鍙傛暟鍊?br style="margin: 0px; padding: 0px;" />

渚嬪錛?/p>

 

[java] view plain copy
 
  1. @RequestMapping(value="/user",method = RequestMethod.GET)  
  2.    public @ResponseBody  
  3.    User printUser(@RequestParam(value = "id", required = false, defaultValue = "0")  
  4.    int id) {  
  5.     User user = new User();  
  6.        user = userService.getUserById(id);  
  7.        return user;  
  8.    }  
  9.      
  10.    @RequestMapping(value="/user/{id}",method = RequestMethod.GET)  
  11.    public @ResponseBody  
  12.    User printUser2(@PathVariable int id) {  
  13.        User user = new User();  
  14.        user = userService.getUserById(id);  
  15.        return user;  
  16.    }  


 

 

涓婇潰涓や釜鏂規(guī)硶錛岃闂礬寰勫垎鍒涓嬶細(xì)

 




fly 2018-08-22 11:05 鍙戣〃璇勮
]]>
SVN鍛戒護(hù)瀛︿範(fàn)http://www.tkk7.com/jlin/archive/2018/05/25/433235.htmlflyflyFri, 25 May 2018 05:46:00 GMThttp://www.tkk7.com/jlin/archive/2018/05/25/433235.htmlhttp://www.tkk7.com/jlin/comments/433235.htmlhttp://www.tkk7.com/jlin/archive/2018/05/25/433235.html#Feedback0http://www.tkk7.com/jlin/comments/commentRss/433235.htmlhttp://www.tkk7.com/jlin/services/trackbacks/433235.htmlsvn銆add銆鏂囦歡鍚?鐩綍
svn銆ci銆銆鏂囦歡鍚?鐩綍 -m銆“鎻愪氦澶囨敞淇℃伅鏂囨湰“
svn媯鏌ユ湰鍦版枃浠舵槸鍚︽湁鏀瑰姩錛屽茍鏄劇ず鏂囦歡鍚嶏細(xì)
svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2
媯鏌ユ湰鍦扮洰褰曟敼鍔ㄥ強(qiáng)鎻愪氦SVN:
svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2 | svn ci -m "test"
鎻愪氦鍚屼竴涓洰褰曚笅鐨勫涓枃浠訛細(xì) svn ci -m "" 鐩綍
鎻愪氦澶氫釜鏂囦歡錛屼嬌鐢ㄧ┖鏍兼潵闂撮殧榪欏涓枃浠訛細(xì) svn ci  file1 file2 … filen -m “”
鍚屼竴鐩綍涓嬬殑鏈姞鍏ョ増鏈簱娣誨姞: svn add * 
——————————————————————————————————————————————————————————————————
鏌ョ湅涓涓枃浠舵瘡涓琛屾渶鍚庢洿鏀圭殑璇︽儏錛堢増鏈佷綔涓氾級
svn blame filename
鏌ョ湅涓涓枃浠舵墍鏈夋洿鏀瑰巻鍙茶鎯?/div>
svn log --diff filename


fly 2018-05-25 13:46 鍙戣〃璇勮
]]>浣跨敤java8鐨刲ambda灝唋ist杞負(fù)map錛堣漿錛?/title><link>http://www.tkk7.com/jlin/archive/2018/03/31/433138.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Sat, 31 Mar 2018 12:22:00 GMT</pubDate><guid>http://www.tkk7.com/jlin/archive/2018/03/31/433138.html</guid><wfw:comment>http://www.tkk7.com/jlin/comments/433138.html</wfw:comment><comments>http://www.tkk7.com/jlin/archive/2018/03/31/433138.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jlin/comments/commentRss/433138.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jlin/services/trackbacks/433138.html</trackback:ping><description><![CDATA[<div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"><h3>甯哥敤鏂瑰紡</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account::getUsername)); } </code></pre><h3>鏀墮泦鎴愬疄浣撴湰韜玬ap</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, account -> account)); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;"><strong style="margin: 0px; padding: 0px;">account -> account</strong>鏄竴涓繑鍥炴湰韜殑lambda琛ㄨ揪寮忥紝鍏跺疄榪樺彲浠ヤ嬌鐢‵unction鎺ュ彛涓殑涓涓粯璁ゆ柟娉曚唬鏇匡紝浣挎暣涓柟娉曟洿綆媧佷紭闆咃細(xì)</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Function.identity())); } </code></pre><h3>閲嶅key鐨勬儏鍐?/h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity())); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">榪欎釜鏂規(guī)硶鍙兘鎶ラ敊錛?strong style="margin: 0px; padding: 0px;">java.lang.IllegalStateException: Duplicate key</strong>錛夛紝鍥犱負(fù)name鏄湁鍙兘閲嶅鐨勩?strong style="margin: 0px; padding: 0px;">toMap</strong>鏈変釜閲嶈澆鏂規(guī)硶錛屽彲浠ヤ紶鍏ヤ竴涓悎騫剁殑鍑芥暟鏉ヨВ鍐砶ey鍐茬獊闂錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity(), (key1, key2) -> key2)); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">榪欓噷鍙槸綆鍗曠殑浣跨敤鍚庤呰鐩栧墠鑰呮潵瑙e喅key閲嶅闂銆?/p><h3>鎸囧畾鍏蜂綋鏀墮泦鐨刴ap</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;"><strong style="margin: 0px; padding: 0px;">toMap</strong>榪樻湁鍙︿竴涓噸杞芥柟娉曪紝鍙互鎸囧畾涓涓狹ap鐨勫叿浣撳疄鐜幫紝鏉ユ敹闆嗘暟鎹細(xì)</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity(), (key1, key2) -> key2, LinkedHashMap::new)); } </code></pre></div><div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"> </div><div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"><div style="margin: 0px;">杞嚜錛歨ttps://zacard.net/2016/03/17/java8-list-to-map/</div></div><img src ="http://www.tkk7.com/jlin/aggbug/433138.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jlin/" target="_blank">fly</a> 2018-03-31 20:22 <a href="http://www.tkk7.com/jlin/archive/2018/03/31/433138.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤java8鐨刲ambda灝唋ist杞負(fù)map錛堣漿錛?/title><link>http://www.tkk7.com/jlin/archive/2018/03/31/433137.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Sat, 31 Mar 2018 12:21:00 GMT</pubDate><guid>http://www.tkk7.com/jlin/archive/2018/03/31/433137.html</guid><wfw:comment>http://www.tkk7.com/jlin/comments/433137.html</wfw:comment><comments>http://www.tkk7.com/jlin/archive/2018/03/31/433137.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jlin/comments/commentRss/433137.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jlin/services/trackbacks/433137.html</trackback:ping><description><![CDATA[<div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"><h3>甯哥敤鏂瑰紡</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account::getUsername)); } </code></pre><h3>鏀墮泦鎴愬疄浣撴湰韜玬ap</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, account -> account)); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;"><strong style="margin: 0px; padding: 0px;">account -> account</strong>鏄竴涓繑鍥炴湰韜殑lambda琛ㄨ揪寮忥紝鍏跺疄榪樺彲浠ヤ嬌鐢‵unction鎺ュ彛涓殑涓涓粯璁ゆ柟娉曚唬鏇匡紝浣挎暣涓柟娉曟洿綆媧佷紭闆咃細(xì)</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Function.identity())); } </code></pre><h3>閲嶅key鐨勬儏鍐?/h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">浠g爜濡備笅錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity())); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">榪欎釜鏂規(guī)硶鍙兘鎶ラ敊錛?strong style="margin: 0px; padding: 0px;">java.lang.IllegalStateException: Duplicate key</strong>錛夛紝鍥犱負(fù)name鏄湁鍙兘閲嶅鐨勩?strong style="margin: 0px; padding: 0px;">toMap</strong>鏈変釜閲嶈澆鏂規(guī)硶錛屽彲浠ヤ紶鍏ヤ竴涓悎騫剁殑鍑芥暟鏉ヨВ鍐砶ey鍐茬獊闂錛?/p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity(), (key1, key2) -> key2)); } </code></pre><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;">榪欓噷鍙槸綆鍗曠殑浣跨敤鍚庤呰鐩栧墠鑰呮潵瑙e喅key閲嶅闂銆?/p><h3>鎸囧畾鍏蜂綋鏀墮泦鐨刴ap</h3><p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 1.5;"><strong style="margin: 0px; padding: 0px;">toMap</strong>榪樻湁鍙︿竴涓噸杞芥柟娉曪紝鍙互鎸囧畾涓涓狹ap鐨勫叿浣撳疄鐜幫紝鏉ユ敹闆嗘暟鎹細(xì)</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word;"><code style="margin: 0px; padding: 0px;">public Map<String, Account> getNameAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getUsername, Function.identity(), (key1, key2) -> key2, LinkedHashMap::new)); } </code></pre></div><div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"> </div><div style="margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: #fefef2;"><div style="margin: 0px;">杞嚜錛歨ttps://zacard.net/2016/03/17/java8-list-to-map/</div></div><img src ="http://www.tkk7.com/jlin/aggbug/433137.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jlin/" target="_blank">fly</a> 2018-03-31 20:21 <a href="http://www.tkk7.com/jlin/archive/2018/03/31/433137.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring3涓璲s/css/jpg/gif絳夐潤鎬佽祫婧愭棤娉曟壘鍒幫紙No mapping found for HTTP request with URI錛夐棶棰?/title><link>http://www.tkk7.com/jlin/archive/2018/01/30/433031.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Tue, 30 Jan 2018 08:16:00 GMT</pubDate><guid>http://www.tkk7.com/jlin/archive/2018/01/30/433031.html</guid><wfw:comment>http://www.tkk7.com/jlin/comments/433031.html</wfw:comment><comments>http://www.tkk7.com/jlin/archive/2018/01/30/433031.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jlin/comments/commentRss/433031.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jlin/services/trackbacks/433031.html</trackback:ping><description><![CDATA[<p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;">鎴戜滑鍦ㄤ嬌鐢╯pring3鐨勬椂鍊欙紝濡傛灉浣跨敤浜嗘敞瑙g殑璇濓紝鎴戜滑浼?xì)鍙戠帋图屾湁鏃跺欐垜浠晫闈㈢殑js/css/jpg/gif絳夋枃浠朵細(xì)鍑虹幇鎵句笉鍒扮殑鎯呭喌錛岀劧鑰屾鏌ュ紩鐢ㄨ礬寰勶紝鍙戠幇鏃犺鏄粷瀵硅礬寰勮繕鏄浉瀵硅礬寰勶紝閮芥病閿欍傝繖涓嬫垜浠氨綰犵粨浜嗭紝鍒板簳鏄粈涔堥棶棰樺憿錛?/span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;">妤間富鎴戜篃鏄嫤鎬濊壇涔咃紝涓嶇粡鎰忛棿鐪嬪埌浜嗗悗鍙扮殑鏃ュ織錛屾墠鍙戠幇鏄痵pring鎼炵殑楝箋?/span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><br style="box-sizing: border-box;" /></span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;">鎶ラ敊淇℃伅錛?span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #ff0000;"><No mapping found for HTTP request with URI [/sandDemo001/images/1.jpg] in DispatcherServlet with name 'spring'></span></span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #ff0000;"><br style="box-sizing: border-box;" /></span></span></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #330033;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #ff0000; font-size: 18px;"><strong style="box-sizing: border-box;">瑙e喅鏂規(guī)硶1</strong></span>錛?span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px;"><strong style="box-sizing: border-box;">鍦╯pring鐨勯厤緗慨鏀?/strong></span></span><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #330033;">web.xml<span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px;"><strong style="box-sizing: border-box;">涓嬪</strong></span>spring<span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px;"><strong style="box-sizing: border-box;">鐨?/strong></span>DispatcherServlet<span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px;"><strong style="box-sizing: border-box;">璇鋒眰</strong></span>url<span style="box-sizing: border-box; margin: 0px; padding: 0px; font-size: 14px;"><strong style="box-sizing: border-box;">鏄犲皠鐨勯厤緗紝鍏堟潵鐪嬬湅鍘熼厤緗?/strong></span>錛?/span><br style="box-sizing: border-box;" /></span></span></span></p><div bg_html"="" style="box-sizing: border-box; position: relative; overflow-y: hidden; width: 851.391px; color: #454545;"><div style="box-sizing: border-box; margin: 0px;"><div style="box-sizing: border-box; margin: 0px; border-right: 1px solid #e7e5dc;"><strong style="box-sizing: border-box;">[html]</strong> <a title="view plain" style="box-sizing: border-box; background-image: url("../images/ico_plain.gif"); background-position: left top; background-repeat: no-repeat; padding: 1px; outline: 0px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px;">view plain</a><span data-mod="popu_168" style="box-sizing: border-box; margin: 0px; padding: 0px;"> <a title="copy" style="box-sizing: border-box; background-image: url("../images/ico_copy.gif"); background-position: left top; background-repeat: no-repeat; padding: 1px; outline: 0px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px;">copy</a><div style="box-sizing: border-box; margin: 0px; position: absolute; left: 259px; top: 453px; width: 16px; height: 16px; z-index: 99;"></div></span></div></div><ol start="1" style="box-sizing: border-box; border-right: 1px solid #e7e5dc;"><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">    <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">spring</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">    <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-class</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">org.springframework.web.servlet.DispatcherServlet</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-class</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">    <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">load-on-startup</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">1</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">load-on-startup</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">        <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">spring</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">        <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">/</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li></ol></div><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #330033;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><servlet-mapping></span><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;">鐨?/span><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><url-pattern>/</url-pattern></span></span><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #330033;">鎶婃墍鏈夌殑璇鋒眰閮戒氦緇檚pring鍘誨鐞嗕簡錛岃屾墍鏈塧vailable鐨勮姹倁rl閮芥槸鍦–onstroller閲屼嬌鐢ㄧ被浼粿RequestMapping(value = "/login/{user}", method = RequestMethod.GET)榪欐牱鐨勬敞瑙i厤緗殑錛岃繖鏍風(fēng)殑璇濆js/css/jpg/gif絳夐潤鎬佽祫婧愮殑璁塊棶灝變細(xì)寰椾笉鍒般傛墍浠ワ紝鍦?span style="box-sizing: border-box; margin: 0px; padding: 0px;">web.xml閲屾坊鍔犲涓嬬殑閰嶇疆灝卞彲浠ヨВ鍐寵闂浜嗐?/span></span></span></span><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"></p><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial;"><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #330033;"></span></span></span></span></span></span></p><div bg_html"="" style="box-sizing: border-box; position: relative; overflow-y: hidden; width: 851.391px; color: #454545;"><div style="box-sizing: border-box; margin: 0px;"><div style="box-sizing: border-box; margin: 0px; border-right: 1px solid #e7e5dc;"><strong style="box-sizing: border-box;">[html]</strong> <a title="view plain" style="box-sizing: border-box; background-image: url("../images/ico_plain.gif"); background-position: left top; background-repeat: no-repeat; padding: 1px; outline: 0px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px;">view plain</a><span data-mod="popu_168" style="box-sizing: border-box; margin: 0px; padding: 0px;"> <a title="copy" style="box-sizing: border-box; background-image: url("../images/ico_copy.gif"); background-position: left top; background-repeat: no-repeat; padding: 1px; outline: 0px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px;">copy</a><div style="box-sizing: border-box; margin: 0px; position: absolute; left: 259px; top: 754px; width: 16px; height: 16px; z-index: 99;"></div></span></div></div><ol start="1" style="box-sizing: border-box; border-right: 1px solid #e7e5dc;"><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">default</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">*.css</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">   </span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">    <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">default</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">    <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">*.gif</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">  </span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">      </span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">default</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">*.jpg</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">      </span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">default</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-name</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;">     <span style="box-sizing: border-box; font-weight: 700; color: #993300;"><</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">*.js</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">url-pattern</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li><li style="box-sizing: border-box; line-height: 18px;"><span style="box-sizing: border-box;"> <span style="box-sizing: border-box; font-weight: 700; color: #993300;"></</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">servlet-mapping</span><span style="box-sizing: border-box; font-weight: 700; color: #993300;">></span><span style="box-sizing: border-box;">  </span></span></li></ol></div><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"></p><p style="box-sizing: border-box; margin: 10px 0px; padding: 0px; color: #454545; background-color: #ffffff; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;"><strong style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-weight: 400; font-family: Arial; color: #ff0000; font-size: 18px;">瑙e喅鏂規(guī)硶2錛?span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #000000; font-size: 14px;">鍦╯pring鐨勯厤緗枃浠朵腑娣誨姞濡備笅涓琛岋細(xì)</span></span></strong></strong></p><p style="box-sizing: border-box; margin: 10px 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><strong style="box-sizing: border-box;"></strong><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #660000; font-size: 14px;"><strong style="box-sizing: border-box;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-weight: 400; color: #006699;"><mvc:default-servlet-handler/></span></strong></span></p><p style="box-sizing: border-box; margin: 10px 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #660000; font-size: 14px;">娉ㄦ剰錛岄渶瑕佹槸spring3.0.5浠ヤ笂鐗堟湰</span></p><br style="box-sizing: border-box; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;" /><span style="box-sizing: border-box; margin: 0px; padding: 0px; background-color: #ffffff; color: #ff0000; font-family: Arial; font-size: 18px;"><strong style="box-sizing: border-box;">瑙e喅鏂規(guī)硶3錛?/strong></span><span style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; background-color: #ffffff; font-family: Arial;"><strong style="box-sizing: border-box;">鍦╯pring鐨勯厤緗枃浠朵腑娣誨姞濡備笅涓琛岋細(xì)</strong></span><br style="box-sizing: border-box; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;" /><p style="box-sizing: border-box; margin: 0px; padding: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; font-family: Arial; color: #330033;"></span></p><div style="box-sizing: border-box; margin: 0px; color: #454545; font-family: "PingFang SC", "Microsoft YaHei", SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff; overflow: hidden;"><!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory --><br style="box-sizing: border-box;" /> <br style="box-sizing: border-box;" /> <mvc:resources mapping="/resources/**" location="/resources/" /> <br style="box-sizing: border-box;" />  <br style="box-sizing: border-box;" />榪欎釜閰嶇疆鍛婅瘔spring 闈欐佽祫婧愮殑澶勭悊鏂瑰紡<br /><br />杞細(xì) <span style="font-family: verdana, "courier new"; font-size: 14px;">http://blog.csdn.net/miss_kun/article/details/52047381</span></div><div></div><img src ="http://www.tkk7.com/jlin/aggbug/433031.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jlin/" target="_blank">fly</a> 2018-01-30 16:16 <a href="http://www.tkk7.com/jlin/archive/2018/01/30/433031.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://bovch.com" target="_blank">亚洲成a人片在线观看播放</a>| <a href="http://njjngs.com" target="_blank">国产亚洲综合一区二区三区</a>| <a href="http://baiyifuwu.com" target="_blank">日本免费高清一本视频</a>| <a href="http://jcthbank.com" target="_blank">日韩视频在线观看免费</a>| <a href="http://datian-cn.com" target="_blank">日本系列1页亚洲系列</a>| <a href="http://4438xa48.com" target="_blank">亚洲国产成人91精品</a>| <a href="http://obtainfo.com" target="_blank">国产国拍亚洲精品mv在线观看</a>| <a href="http://saob19.com" target="_blank">国产一级大片免费看</a>| <a href="http://6789311.com" target="_blank">免费精品人在线二线三线区别</a>| <a href="http://ygloka.com" target="_blank">在线毛片片免费观看</a>| <a href="http://www827556.com" target="_blank">搜日本一区二区三区免费高清视频</a>| <a href="http://shmtweld.com" target="_blank">中文字幕亚洲男人的天堂网络</a>| <a href="http://www73234.com" target="_blank">99久久精品国产亚洲</a>| <a href="http://42329c.com" target="_blank">亚洲av最新在线网址</a>| <a href="http://pc521.com" target="_blank">久久久久噜噜噜亚洲熟女综合</a>| <a href="http://yixinbanks.com" target="_blank">午夜a级成人免费毛片</a>| <a href="http://1408600.com" target="_blank">永久免费av无码网站韩国毛片</a>| <a href="http://4p5e.com" target="_blank">日本免费人成网ww555在线</a>| <a href="http://963315.com" target="_blank">精品一区二区三区免费视频</a>| <a href="http://jiucaoji.com" target="_blank">免费观看亚洲人成网站</a>| <a href="http://www907ii.com" target="_blank">亚洲精品无码专区在线</a>| <a href="http://maomaots.com" target="_blank">久久久久精品国产亚洲AV无码</a>| <a href="http://mottool.com" target="_blank">亚洲精品人成电影网</a>| <a href="http://zzjiji.com" target="_blank">亚洲精品美女久久久久</a>| <a href="http://kph37.com" target="_blank">日本久久久久亚洲中字幕</a>| <a href="http://ghiearning.com" target="_blank">亚洲AV无码国产精品麻豆天美</a>| <a href="http://tv695.com" target="_blank">在线a亚洲v天堂网2019无码</a>| <a href="http://shlamore.com" target="_blank">亚洲一区二区三区在线播放 </a>| <a href="http://91packing.com" target="_blank">国产亚洲人成网站观看</a>| <a href="http://5079157.com" target="_blank">亚洲熟女乱综合一区二区</a>| <a href="http://directzx.com" target="_blank">亚洲精品国精品久久99热</a>| <a href="http://qulu999.com" target="_blank">免费二级毛片免费完整视频</a>| <a href="http://jyd56.com" target="_blank">国产国产人免费人成免费视频</a>| <a href="http://wlamyx.com" target="_blank">成人免费看黄20分钟</a>| <a href="http://cqtchtwq.com" target="_blank">四虎影院在线免费播放</a>| <a href="http://928348.com" target="_blank">爽爽日本在线视频免费</a>| <a href="http://sxjttxkywl.com" target="_blank">日本一道本高清免费</a>| <a href="http://clever-ad.com" target="_blank">免费人成在线观看网站品爱网日本 </a>| <a href="http://minliusoft.com" target="_blank">国产精品入口麻豆免费观看</a>| <a href="http://732r.com" target="_blank">日韩在线播放全免费</a>| <a href="http://socgl.com" target="_blank">99在线视频免费观看视频</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>