锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品tv久久久久,亚洲视频一区二区,国产亚洲精品激情都市http://www.tkk7.com/xmatthew/category/35679.html瀛ょ嫭閿洏鎵?/description>zh-cnFri, 09 Apr 2021 10:37:01 GMTFri, 09 Apr 2021 10:37:01 GMT60鍏煎鍘熺敓SpringBoot閰嶇疆瑙勮寖錛?BRCC鍔╀綘涓绔欏紡瑙e喅欏圭洰閰嶇疆寤鴻闇姹?/title><link>http://www.tkk7.com/xmatthew/archive/2021/04/08/435848.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Thu, 08 Apr 2021 12:00:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2021/04/08/435848.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/435848.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2021/04/08/435848.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/435848.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/435848.html</trackback:ping><description><![CDATA[     鎽樿: 1. Springboot config紺轟緥涓庡師鐞嗕粙緇?.1 Springboot config紺轟緥Springboot緇欐垜浠彁渚涗簡闈炲父渚挎嵎涓庢柟渚跨殑閰嶇疆浣跨敤鏂瑰紡錛屽父鐢ㄧ殑浣跨敤紺轟緥鏈変互涓嬩袱縐嶏細1錛変嬌鐢ˊConfigurationProperties 璇誨彇澶氫釜灞炴т嬌鐢ㄦ柟娉曪細@ConfigurationProperties(prefix = "spring.datasource")浣跨敤璇存槑錛氭彁渚?..  <a href='http://www.tkk7.com/xmatthew/archive/2021/04/08/435848.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/435848.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2021-04-08 20:00 <a href="http://www.tkk7.com/xmatthew/archive/2021/04/08/435848.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jprotobuf-rpc-http緇勪歡搴?.0鍙戝竷錛屽彲鏀寔鐩存帴鎶奝rotobuf IDL瀹氫箟鍙戝竷鎴怰PC鏈嶅姟搴旂敤http://www.tkk7.com/xmatthew/archive/2014/10/10/418592.htmlx.matthewx.matthewFri, 10 Oct 2014 07:20:00 GMThttp://www.tkk7.com/xmatthew/archive/2014/10/10/418592.htmlhttp://www.tkk7.com/xmatthew/comments/418592.htmlhttp://www.tkk7.com/xmatthew/archive/2014/10/10/418592.html#Feedback0http://www.tkk7.com/xmatthew/comments/commentRss/418592.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/418592.html闃呰鍏ㄦ枃

x.matthew 2014-10-10 15:20 鍙戣〃璇勮
]]>
Mybatis Laz-Load鍔熻兘瀹炵幇浠g爜璧忔瀽(鍘熷垱)http://www.tkk7.com/xmatthew/archive/2011/12/29/367523.htmlx.matthewx.matthewThu, 29 Dec 2011 11:14:00 GMThttp://www.tkk7.com/xmatthew/archive/2011/12/29/367523.htmlhttp://www.tkk7.com/xmatthew/comments/367523.htmlhttp://www.tkk7.com/xmatthew/archive/2011/12/29/367523.html#Feedback1http://www.tkk7.com/xmatthew/comments/commentRss/367523.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/367523.html闃呰鍏ㄦ枃

x.matthew 2011-12-29 19:14 鍙戣〃璇勮
]]>
婧愮爜瑙hMybatis List鍒楄〃In鏌ヨ瀹炵幇鐨勬敞鎰忎簨欏?/title><link>http://www.tkk7.com/xmatthew/archive/2011/08/31/355879.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Wed, 31 Aug 2011 06:38:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2011/08/31/355879.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/355879.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2011/08/31/355879.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/355879.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/355879.html</trackback:ping><description><![CDATA[     鎽樿: 鍦⊿QL寮鍙戣繃紼嬩腑錛屽姩鎬佹瀯寤篒n闆嗗悎鏉′歡鏌ヨ鏄瘮杈冨父瑙佺殑鐢ㄦ硶錛屽湪Mybatis涓彁渚涗簡foreach鍔熻兘錛岃鍔熻兘姣旇緝寮哄ぇ錛屼絾鐢變簬瀹樻柟鏂囨。瀵硅繖鍧楃殑浣跨敤錛屾弿榪扮殑姣旇緝綆鐭紝緇嗚妭涓婁篃琚拷鐣ユ帀浜?鍙兘鏄紑婧愰」鐩枃妗d竴璐殑闂鍚?錛屼篃浣跨敤涓嶅皯鍚屽鍦ㄤ嬌鐢ㄤ腑閬囧埌浜嗛棶棰樸傜壒鍒槸foreach榪欎釜鍑芥暟涓紝collection灞炴у仛浠涔堢敤錛屾湁浠涔堟敞鎰忎簨欏廣傜敱浜庢枃妗d笉鍏紝榪欏潡鍙兘閫氳繃婧愪唬鐮佸墫鏋愮殑鏂瑰紡鏉ュ垎鏋愪竴涓嬪悇涓睘鎬х殑鐩稿叧瑕佹眰銆?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2011/08/31/355879.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/355879.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2011-08-31 14:38 <a href="http://www.tkk7.com/xmatthew/archive/2011/08/31/355879.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring澹版槑寮忎簨鍔¢厤緗瑙?/title><link>http://www.tkk7.com/xmatthew/archive/2011/06/23/352871.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Thu, 23 Jun 2011 05:25:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2011/06/23/352871.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/352871.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2011/06/23/352871.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/352871.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/352871.html</trackback:ping><description><![CDATA[     鎽樿: Spring澹版槑寮忎簨鍔″姛鑳藉簲璇ユ槸澶у搴旂敤Spring涓嬌鐢ㄧ殑鏈澶氱殑鍔熻兘涔嬩竴浜嗭紝鐨勭‘璇ュ姛鑳芥瀬澶х殑綆鍖栦簡澶у瀵規(guī)暟鎹簱鎿嶄綔鐨勩傜洰鍓峉pring鏀寔鐨勫0鏄庡紡浜嬪姟鏈変袱涓厤緗柟寮忥紝涓縐嶆槸XML閰嶇疆鏂瑰紡錛屽彟涓縐嶆槸娉ㄨВ鏂瑰紡 <br> <br>閽堝閰嶇疆榪欏潡錛孹ML閰嶇疆鍚屽浠細瑙夊緱姣旇緝楹葷儲錛岀壒鍒槸閽堝浜嬪姟灞炴х殑閰嶇疆錛屾墍浠ヨˉ鍏呬竴涓嬫湰鍧楅厤緗鏄庯紝鐗瑰垎浜粰澶у錛屽笇鏈涘澶у鏈夊府鍔┿?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2011/06/23/352871.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/352871.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2011-06-23 13:25 <a href="http://www.tkk7.com/xmatthew/archive/2011/06/23/352871.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring 2.x妗嗘灦瀛︿範(榪炶澆)-浜嗚ВAOPhttp://www.tkk7.com/xmatthew/archive/2011/04/01/347448.htmlx.matthewx.matthewFri, 01 Apr 2011 02:52:00 GMThttp://www.tkk7.com/xmatthew/archive/2011/04/01/347448.htmlhttp://www.tkk7.com/xmatthew/comments/347448.htmlhttp://www.tkk7.com/xmatthew/archive/2011/04/01/347448.html#Feedback0http://www.tkk7.com/xmatthew/comments/commentRss/347448.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/347448.html
鏈瘒鎶鏈枃绔犱粙緇峉pring AOP鐨勫疄鐜般?nbsp; 闃呰鍏ㄦ枃

x.matthew 2011-04-01 10:52 鍙戣〃璇勮
]]>
Spring 2.x妗嗘灦瀛︿範(榪炶澆)-浜嗚ВSpring鍩虹http://www.tkk7.com/xmatthew/archive/2011/03/14/346261.htmlx.matthewx.matthewMon, 14 Mar 2011 11:24:00 GMThttp://www.tkk7.com/xmatthew/archive/2011/03/14/346261.htmlhttp://www.tkk7.com/xmatthew/comments/346261.htmlhttp://www.tkk7.com/xmatthew/archive/2011/03/14/346261.html#Feedback3http://www.tkk7.com/xmatthew/comments/commentRss/346261.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/346261.html
鏈瘒鎶鏈枃绔犲皢浣滀負Spring鍏ラ棬綃囥?
  闃呰鍏ㄦ枃

x.matthew 2011-03-14 19:24 鍙戣〃璇勮
]]>
Struts 鍗曞厓嫻嬭瘯鏂規(guī)http://www.tkk7.com/xmatthew/archive/2011/02/27/338714.htmlx.matthewx.matthewSun, 27 Feb 2011 11:15:00 GMThttp://www.tkk7.com/xmatthew/archive/2011/02/27/338714.htmlhttp://www.tkk7.com/xmatthew/comments/338714.htmlhttp://www.tkk7.com/xmatthew/archive/2011/02/27/338714.html#Feedback2http://www.tkk7.com/xmatthew/comments/commentRss/338714.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/338714.html闃呰鍏ㄦ枃

x.matthew 2011-02-27 19:15 鍙戣〃璇勮
]]>
Hibernate envers寮鍙戞寚鍗?/title><link>http://www.tkk7.com/xmatthew/archive/2010/08/22/329521.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Sun, 22 Aug 2010 15:20:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2010/08/22/329521.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/329521.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2010/08/22/329521.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/329521.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/329521.html</trackback:ping><description><![CDATA[     鎽樿: 浠嬬粛: <br>Hibernate Envers鐩殑鏄牴鎹瀹炰綋鐨勮緗紝鎻愪緵璁板綍鎵ц鏁版嵁鍙樻洿鍘嗗彶鐨勫姛鑳?鏁版嵁鍙樻洿鐗堟湰)銆傚畠瀹炵幇鍘熺悊鏄氳繃瀵笻ibernate鐨勬搷浣滀簨浠剁洃鍚茍鏍規(guī)嵁 <br>鍩轟簬Annoatation鐨勯厤緗潵璁板綍淇敼鏁版嵁鐨勫唴瀹廣?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2010/08/22/329521.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/329521.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2010-08-22 23:20 <a href="http://www.tkk7.com/xmatthew/archive/2010/08/22/329521.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>婧愪唬鐮佽В璇誨熀浜嶴pring鐨勫0鏄庢х紦瀛樺疄鐜板師鐞?/title><link>http://www.tkk7.com/xmatthew/archive/2010/05/13/320915.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Thu, 13 May 2010 11:53:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2010/05/13/320915.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/320915.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2010/05/13/320915.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/320915.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/320915.html</trackback:ping><description><![CDATA[     鎽樿: 鍦ㄤ笂綃囧崥瀹腑錛屼粙緇嶄簡濡備綍鍊熷姪Spring Module欏圭洰錛岄厤緗0鏄庡紡緙撳瓨鍔熻兘瀹炵幇錛屾枃涓彧閽堝Ehcahce鐨勫疄鐜拌繘琛屼簡璁茶В錛屽叾瀹僑pring Module欏圭洰鎶婅繖鍧楃殑鍔熻兘鍋氫簡涓涓緢濂界殑鎶藉彇錛屼嬌鍏惰兘鏇村ソ鐨勫鍏跺畠鐨勭紦瀛樻鏋剁殑鏀寔鍜屾墿灞曘傜瑪鑰呮濂藉埄鐢ㄨ浠g爜妗嗘灦瀹炵幇浜嗕笌Memcached鏈嶅姟鐨勯泦鎴愶紝鏈枃灝嗗緱鐐歸氳繃婧愪唬鐮佽В璁蹭竴涓嬫娊鍙栬繖灞傜殑瀹炵幇錛屽笇鏈涘ぇ瀹舵湁鎵甯姪銆?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2010/05/13/320915.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/320915.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2010-05-13 19:53 <a href="http://www.tkk7.com/xmatthew/archive/2010/05/13/320915.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>婧愪唬鐮佽В璇籗pring鍙浜嬪姟涓庤鍐欎簨鍔$殑鎬ц兘鐨勫樊鍒?/title><link>http://www.tkk7.com/xmatthew/archive/2010/05/06/320123.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Thu, 06 May 2010 11:31:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2010/05/06/320123.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/320123.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2010/05/06/320123.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/320123.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/320123.html</trackback:ping><description><![CDATA[     鎽樿: 鍓嶈█錛?<br> 濡傛灉澶у浣跨敤榪嘢pring浜嬪姟綆$悊錛屼細鍙戠幇Spring鎻愪緵鐨勪簨鍔″垎涓衡滃彧璇燴濆拰鈥滆鍐欌濅簨鍔′袱綾匯傝繖涓嶅厤灝變細鐤戦棶榪欎袱縐嶄簨鍔′細鏈変粈涔堜笉鍚岋紵鏈枃鍒欓氳繃瀵筍pring鍜孒ibernate婧愪唬鐮佺殑鍓栨瀽鏉ユ壘鍑鴻繖涓ょ浜嬪姟鐨勫尯鍒傜壒鍒槸榪愯鎬ц兘鏂歸潰鐨勫尯鍒?<br> 鏂囩珷璋冭瘯浣跨敤鐨勭増鏈負 Spring 2.5.6.SEC01 錛孒ibernate 3.3.2.GA銆?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2010/05/06/320123.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/320123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2010-05-06 19:31 <a href="http://www.tkk7.com/xmatthew/archive/2010/05/06/320123.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍊熷姪Spring Module欏圭洰錛屽浣曢厤緗0鏄庡紡緙撳瓨鍔熻兘瀹炵幇http://www.tkk7.com/xmatthew/archive/2010/04/22/319146.htmlx.matthewx.matthewThu, 22 Apr 2010 11:47:00 GMThttp://www.tkk7.com/xmatthew/archive/2010/04/22/319146.htmlhttp://www.tkk7.com/xmatthew/comments/319146.htmlhttp://www.tkk7.com/xmatthew/archive/2010/04/22/319146.html#Feedback4http://www.tkk7.com/xmatthew/comments/commentRss/319146.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/319146.html 鏈枃妗e皢璁茶В涓涓嬶紝濡備綍鍊熷姪Spring Module欏圭洰錛屽疄鐜伴厤緗0鏄庢х紦瀛樺姛鑳姐?
璇存槑:
鏈。鐨勯厤緗粡榪囨湰浜烘祴璇曪紝閮借兘姝g‘榪愯銆?
榪愯鐜錛?Jdk5.0, Spring-2.5, Spring-modules-0.9錛?ehcache-1.6.0-beta4.jar  闃呰鍏ㄦ枃

x.matthew 2010-04-22 19:47 鍙戣〃璇勮
]]>
Spring 3.0 M2鍙戝竷, 澶ч儴鍒嗘柊鐗規(guī)у凡緇忓紑鍙戝畬鎴?/title><link>http://www.tkk7.com/xmatthew/archive/2009/02/27/257091.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Fri, 27 Feb 2009 13:10:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2009/02/27/257091.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/257091.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2009/02/27/257091.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/257091.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/257091.html</trackback:ping><description><![CDATA[     鎽樿: 鏈熷緟榪欎箞闀挎椂闂達紝緇堜簬鍦⊿pringSource瀹樻柟緗戠珯鍙戝竷浜哅2鐗堟湰錛屽ぇ閮ㄥ垎鏂扮壒鎬у凡緇忓紑鍙戝畬鎴?<br> <br> * 浠嶴pring3.0寮濮嬶紝灝卞彧鏀寔java 5鍙婁互涓婄殑鐗堟湰銆傚紑濮嬫硾鍨嬬殑鏀寔錛孧2鐗堟湰涓殑HibernateTemplate宸茬粡瀹炵幇浜嗘硾鍨嬬殑鏀寔銆?<br> * 鎵╁睍浜嗗騫跺彂鐨勬敮鎸併侻2鐗堟湰灝嗗java 5鐨?java.util.concurrent 綾誨簱榪涜鏇寸揣瀵嗙殑闆嗘垚銆傚湪灝嗘潵鐨凷pring 3.0 M3鐗堟湰浼氭洿榪涗竴姝ュ閰嶇疆榪涜綆鍗曪紝浠ユ柟渚夸嬌鐢ㄣ?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2009/02/27/257091.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/257091.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2009-02-27 21:10 <a href="http://www.tkk7.com/xmatthew/archive/2009/02/27/257091.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring Integration 1.0 姝e紡鍙戝竷http://www.tkk7.com/xmatthew/archive/2008/12/04/243443.htmlx.matthewx.matthewThu, 04 Dec 2008 00:33:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/12/04/243443.htmlhttp://www.tkk7.com/xmatthew/comments/243443.htmlhttp://www.tkk7.com/xmatthew/archive/2008/12/04/243443.html#Feedback3http://www.tkk7.com/xmatthew/comments/commentRss/243443.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/243443.html 涓嬮潰鏄湰浜轟簤鍙栫涓鏃舵暣鐞嗙殑瀛︿範絎旇(閽堝鏈鏂扮増鏈?  闃呰鍏ㄦ枃

x.matthew 2008-12-04 08:33 鍙戣〃璇勮
]]>
Spring Integration 1.0瀛︿範絎旇(浜?http://www.tkk7.com/xmatthew/archive/2008/12/04/243455.htmlx.matthewx.matthewThu, 04 Dec 2008 00:33:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/12/04/243455.htmlhttp://www.tkk7.com/xmatthew/comments/243455.htmlhttp://www.tkk7.com/xmatthew/archive/2008/12/04/243455.html#Feedback0http://www.tkk7.com/xmatthew/comments/commentRss/243455.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/243455.html鏈瑪璁版帴涓嬭瑙d互Annotation鐨勬柟寮忔潵浣跨敤Spring-integration鐨勪緥瀛愩傝繕鏄箣鍓嶇殑閭d釜紺轟緥:
  闃呰鍏ㄦ枃

x.matthew 2008-12-04 08:33 鍙戣〃璇勮
]]>
What is Spring?http://www.tkk7.com/xmatthew/archive/2008/12/01/243801.htmlx.matthewx.matthewMon, 01 Dec 2008 14:04:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/12/01/243801.htmlhttp://www.tkk7.com/xmatthew/comments/243801.htmlhttp://www.tkk7.com/xmatthew/archive/2008/12/01/243801.html#Feedback6http://www.tkk7.com/xmatthew/comments/commentRss/243801.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/243801.html
鍏跺疄鍦⊿pring瀹樻柟緗戠珯灝辨槸鍏蜂綋鐨勪粙緇嶏紝涓嬮潰鏈漢瀵瑰叾璇戞垚浜嗕腑鏂?濡傛湁緲昏瘧涓嶅綋涔嬪錛屾暚璇峰悇浣嶆寚姝c?nbsp; 闃呰鍏ㄦ枃

x.matthew 2008-12-01 22:04 鍙戣〃璇勮
]]>
JBoss Envers 瀛︿範絎旇 http://www.tkk7.com/xmatthew/archive/2008/11/14/238432.htmlx.matthewx.matthewFri, 14 Nov 2008 04:14:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/11/14/238432.htmlhttp://www.tkk7.com/xmatthew/comments/238432.htmlhttp://www.tkk7.com/xmatthew/archive/2008/11/14/238432.html#Feedback1http://www.tkk7.com/xmatthew/comments/commentRss/238432.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/238432.html JBoss Envers鐩殑鏄牴鎹瀹炰綋鐨勮緗紝鎻愪緵璁板綍鎵ц鏁版嵁鍙樻洿鍘嗗彶鐨勫姛鑳?鏁版嵁鍙樻洿鐗堟湰)銆侲nvers鐨勯厤緗潪甯哥畝鍗曪紝濡傛灉闇瑕佸鏌愪釜瀹炰緥榪涜鍘嗗彶鏁版嵁鐗堟湰璁板綍錛屽彧闇瑕佸湪瀹炰緥涓婇厤緗瓳Versioned annotation鍗沖彲銆傞拡瀵規(guī)瘡涓疄浣撶殑鐗堟湰鐨勫巻鍙叉暟鎹?Envers閮戒細鍒涘緩涓涓崟鐙殑鏁版嵁琛ㄨ繘琛屽瓨鍌ㄣ?nbsp; 闃呰鍏ㄦ枃

x.matthew 2008-11-14 12:14 鍙戣〃璇勮
]]>
Spring Integration 1.0 RC1 鐗堟湰鍙戝竷 http://www.tkk7.com/xmatthew/archive/2008/11/08/239395.htmlx.matthewx.matthewSat, 08 Nov 2008 04:53:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/11/08/239395.htmlhttp://www.tkk7.com/xmatthew/comments/239395.htmlhttp://www.tkk7.com/xmatthew/archive/2008/11/08/239395.html#Feedback1http://www.tkk7.com/xmatthew/comments/commentRss/239395.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/239395.html 涓嬮潰鏄湰浜哄厛鍓嶆暣鐞嗙殑瀛︿範絎旇(鐩墠鍙拡瀵筂6鐗堟湰錛孯C1鐗堟湁涓浜涙敼鍔紝姝e湪鏁寸悊涓?  闃呰鍏ㄦ枃

x.matthew 2008-11-08 12:53 鍙戣〃璇勮
]]>
Spring 2.5.6姝e紡鍙戝竷http://www.tkk7.com/xmatthew/archive/2008/11/06/238971.htmlx.matthewx.matthewThu, 06 Nov 2008 02:25:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/11/06/238971.htmlhttp://www.tkk7.com/xmatthew/comments/238971.htmlhttp://www.tkk7.com/xmatthew/archive/2008/11/06/238971.html#Feedback0http://www.tkk7.com/xmatthew/comments/commentRss/238971.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/238971.html
鎸夌収瀹樻柟3.0鐗堟湰寮鍙戠殑璇存槑錛孲pring 2.5.6灝嗕細鏄疭pring 2.5鍒嗘敮鐨勬渶鍚庝竴涓増錛屾暣涓紑鍙戝洟闃熷皢浼氬叏鍔涙姇鍏ュ埌 3.0鐗堟湰鐨勫紑鍙戝伐浣溿?.0鐗堢殑MVC灝嗕細瀵筊est榪涜鏀寔銆?
Spring 3.0 is in progress now! view roadmap click here  闃呰鍏ㄦ枃

x.matthew 2008-11-06 10:25 鍙戣〃璇勮
]]>
閫氳繃Spring2.5瀵瑰崟鍏冩祴璇曠殑Annotation鏀寔榪涜TDD寮鍙?/title><link>http://www.tkk7.com/xmatthew/archive/2008/11/05/238697.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Wed, 05 Nov 2008 11:40:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2008/11/05/238697.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/238697.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2008/11/05/238697.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/238697.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/238697.html</trackback:ping><description><![CDATA[     鎽樿: 鏈枃浠庝竴涓緥瀛愬嚭鍙戯紝鏍規(guī)嵁TDD(嫻嬭瘯椹卞姩寮鍙?瑕佹眰錛岃繘琛屽紑鍙戙傚彧鏄敤浜庢紨紺哄浣曚嬌鐢⊿pring2.5鎻愪緵鐨勫熀浜嶢nnonation鏂瑰紡鐨処OC瀹炵幇錛岃繘琛孴DD寮鍙戙?<br> <br>棣栧厛鎴戜滑鏉ョ湅涓涓嬭繖涓緥瀛愮殑瑕佹眰: <br> 寮鍙戜竴涓喘鐗╄濺瀵硅薄,鍙互娣誨姞鍟嗗搧錛屽垹闄ゅ晢鍝侊紝鏌ヨ宸茶喘鍟嗗彛錛岀粨璐﹀姛鑳姐?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2008/11/05/238697.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/238697.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2008-11-05 19:40 <a href="http://www.tkk7.com/xmatthew/archive/2008/11/05/238697.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>锘縎pring2 鎻愪緵鐨剅emote鍖呭涔犵瑪璁?/title><link>http://www.tkk7.com/xmatthew/archive/2008/11/02/238208.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Sun, 02 Nov 2008 11:20:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2008/11/02/238208.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/238208.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2008/11/02/238208.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/238208.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/238208.html</trackback:ping><description><![CDATA[     鎽樿: Spring2 閽堝榪滅▼璁塊棶鏈嶅姟錛屾彁渚涚殑涓涓猺emote鍖呫傚叾鐨勭殑鏄彁渚涗竴濂楃粺涓鐨勮繙紼嬫湇鍔″彂甯冨姛鑳姐?<br>Spring2鏀寔榪滅▼鏈嶅姟鍔熻兘濡備笅: <br> 1. RMI鏈嶅姟 <br> 2. Hessian鎴栬匓urlap閫氳繃HTTP榪滅▼璋冪敤鏈嶅姟 <br> 3. HTTP璋冪敤鍣ㄦ毚闇叉湇鍔? <br>鏈枃緇撳悎婧愮爜紺轟緥錛屾潵璁茶В濡備綍瀹炵幇榪欎簺鍔熻兘鍙戝竷銆?nbsp; <a href='http://www.tkk7.com/xmatthew/archive/2008/11/02/238208.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xmatthew/aggbug/238208.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2008-11-02 19:20 <a href="http://www.tkk7.com/xmatthew/archive/2008/11/02/238208.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Hibernate閰嶇疆鏂囦歡涓嚑縐嶅疄鐜版暟鎹簱榪炴帴鏂瑰紡鐨勯厤緗柟娉?/title><link>http://www.tkk7.com/xmatthew/archive/2008/10/19/235332.html</link><dc:creator>x.matthew</dc:creator><author>x.matthew</author><pubDate>Sun, 19 Oct 2008 13:19:00 GMT</pubDate><guid>http://www.tkk7.com/xmatthew/archive/2008/10/19/235332.html</guid><wfw:comment>http://www.tkk7.com/xmatthew/comments/235332.html</wfw:comment><comments>http://www.tkk7.com/xmatthew/archive/2008/10/19/235332.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xmatthew/comments/commentRss/235332.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xmatthew/services/trackbacks/235332.html</trackback:ping><description><![CDATA[  鍙傝浜咹ibernate鐨勬簮浠g爜鍚庯紝鏁寸悊浜嗕竴涓婬ibernate閰嶇疆鏂囦歡涓嚑縐嶅疄鐜版暟鎹簱榪炴帴鏂瑰紡鐨勯厤緗柟娉曘?鍏卞洓涓柟寮?<br />    1. 紼嬪簭鍐呴儴鍚姩 c3p0 榪炴帴姹犮?br />    閰嶇疆鏂瑰紡濡備笅:榪炴帴姹犵殑鏀寔(娉細闇瑕乧3p0鐨勭被搴撴敮鎸? <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">        <</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="org.postgresql.Driver"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.url"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="jdbc:postgresql://xxxxx/xxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.username"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="xxxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.password"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="xxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.c3p0.min_size"</span><span style="color: rgb(255, 0, 0);"><br />                     value</span><span style="color: rgb(0, 0, 255);">="5"</span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.c3p0.max_size"</span><span style="color: rgb(255, 0, 0);"><br />                     value</span><span style="color: rgb(0, 0, 255);">="20"</span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.c3p0.timeout"</span><span style="color: rgb(255, 0, 0);"><br />                     value</span><span style="color: rgb(0, 0, 255);">="300"</span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.c3p0.max_statements"</span><span style="color: rgb(255, 0, 0);"><br />                     value</span><span style="color: rgb(0, 0, 255);">="50"</span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.c3p0.idle_test_period"</span><span style="color: rgb(255, 0, 0);"><br />                     value</span><span style="color: rgb(0, 0, 255);">="3000"</span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);">    <br /> </span></div>    娉細 Hibernate鏍規(guī)嵁 hibernate.c3p0.max_size 榪欎釜閰嶇疆鏉ヨ瘑鍒槸鏀寔c3p0榪炴帴姹?br /> <br />    2. 寮曠敤澶栭儴榪炴帴姹?nbsp;   (閫氳繃JNDI鏌ユ壘 DataSource璧勬枡)<br />    闇瑕侀厤緗柟寮忓涓?<br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">      <</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.datasource"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="java:comp/env/jdbc/qualitydb"</span><span style="color: rgb(0, 0, 255);">/></span></div> <br />    3. 閫氳繃 org.hibernate.connection.ProxoolConnectionProvider 鍒涘緩<br />     鐢?<br />        hibernate.proxool.xml<br />        hibernate.proxool.properties<br />        hibernate.proxool.existing_pool 涓変釜閰嶇疆涓璧鋒潵紜畾<br /> <br />    4.  DriverManager 鍒涘緩鐩存帴榪炴帴鏂瑰紡<br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);">       <</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="org.postgresql.Driver"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.url"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="jdbc:postgresql://xxxxx/xxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.username"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="xxxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.password"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="xxxx"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span></div>     娉細 Hibernate鏍規(guī)嵁 hibernate.connection.url榪欎釜鏉ヨ瘑鍒?鐢變簬鍦ㄨ瘑鍒椂錛宑3p0鐨勪紭鍏堢駭浼氶珮浜嶥riverManger鎵浠ワ紝涓巆3p0鐨勯厤緗笉浼氬啿紿?br /> <br /> <br /> Good Luck!<br /> Yours Matthew!<br /> <img src ="http://www.tkk7.com/xmatthew/aggbug/235332.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xmatthew/" target="_blank">x.matthew</a> 2008-10-19 21:19 <a href="http://www.tkk7.com/xmatthew/archive/2008/10/19/235332.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>婧愪唬鐮佽В璇籗pring+Hibernate(JPA)鐨凩azyLoadException寮傚父http://www.tkk7.com/xmatthew/archive/2008/10/11/233769.htmlx.matthewx.matthewSat, 11 Oct 2008 10:01:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/10/11/233769.htmlhttp://www.tkk7.com/xmatthew/comments/233769.htmlhttp://www.tkk7.com/xmatthew/archive/2008/10/11/233769.html#Feedback3http://www.tkk7.com/xmatthew/comments/commentRss/233769.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/233769.html     濂戒箙鐨勭瑪璁頒簡錛岃秮鍒氬ソ浼戞伅鏁寸悊鏂囨。錛岀炕鍑鴻繖涓閮ㄥ垎錛岀◢鍔犳暣鐞嗗悗錛屽氨鍙戜笂鏉ョ粰澶у鍏變韓涓涓嬶紝甯屾湜瀵瑰悇浣嶆湁鎵甯姪銆?br />
    鍏充簬LazyLoadException寮傚父錛屼嬌鐢ㄨ繃Hibernate O/R Mapping宸ュ叿鐨勪漢搴旇閮介亣鍒拌繃錛岀綉涓婁篃鏄湁寰堝瑙e喅鐨勬柟妗堬紝鍏朵腑Spring鎻愪緵鐨勪竴涓柟妗堝氨鏄湪web.xml澧炲姞涓涓猣ilter,紺轟緥浠g爜濡備笅:

<filter>  
    
<filter-name>entityManager</filter-name>  
    
<filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class>  
</filter>  
  
<filter-mapping>  
    
<filter-name>entityManagerFilter</filter-name>  
    
<url-pattern>*.action</url-pattern>  
</filter-mapping> 

  瑙e喅鍔炴硶鏈変簡錛屾帴涓嬫潵搴旇浼氭湁浜哄ソ濂囷細榪欎釜閰嶇疆filter鍚庡畠鏄浣曞伐浣滅殑錛?br />   涓嬮潰鏉ュ垎鏋愪竴涓嬭繖涓姛鑳藉疄鐜扮殑婧愪唬鐮? 涓嶈繃涔嬪墠錛屾瘮杈冮噸瑕佺殑鏄簡瑙o紝涓轟綍浼氬嚭鐜發(fā)azyload exception鐨勫紓甯稿彂鐢熴?br />
   涓嬮潰鎴戞ā鎷熷啓浜嗕竴孌典唬鐮侊紝榪欐浠g爜灝變細鍙戠敓璇ュ紓甯?br />    娉細鍙槸涓轟簡璇存槑錛岀浉鍏崇殑浠g爜灝辯渷鐣ヤ簡銆?br />
@Entity
public class Room {

 @Id
 @Column(length
=32)
 
private String id;

 @Column(length
=20)
 
private code;
 
 @OneToMany(mappedBy
="room"//default is use lazy load strategy 
 private Set desks;
}

@Entity
public class Desk {

     @Id
     @Column(length
=32)
     
private String id;
    
     @Column(length
=20)
     
private code;
     
     @ManyToOne
     
private Room root;

}

public class RoomSerivce {

    @Transactional(readOnly
=true)
    
public Room getRoomById(String roomId) {
      Assert.notBlank(roomId, 
"room'id is null);
        return getDao().findById(roomId);
    
    }

}


 1 public class RoomServiceTest {
 2 
 3     public static void main(String[] args[]) {
 4     
 5         //get service from spring beanfactory
 6         RoomService service = SpringContext.getSerivce("roomService");
 7         Assert.notNull(service, " roomService bean not exsit");
 8     
 9       Room room = service.getRoomById("1");
10       //here lazy exception throw out
11       Set Desks = room.getDesks();
12       CollectionsUtils.toString(Desks);
13     }
14 }

   鍒嗘瀽榪欐浠g爜錛屾垜浠笉闅懼彂鐜幫紝鍦≧oomServiceTest榪欎釜嫻嬭瘯鐨勪緥瀛愪腑錛屽洜涓轟嬌鐢ㄤ簡鍩轟簬Annotation鐨勫0鏄庢т簨鍔★紝鎵浠ュ湪RoomSerivce.getRoomById鏂規(guī)硶榪愯緇撴潫鍚庯紝浜嬪姟灝卞凡緇忔彁浜や簡銆備絾紺轟緥涓璕oom瀹炰綋涓嶥esk瀹炰緥鐨勫叧緋諱嬌鐢ㄧ殑鏄痩azy fetch鐨勭瓥鐣ワ紝姝ゆ椂Room瀵硅薄涓殑desks闆嗗悎榪樻槸涓虹┖銆?br /> 褰撴墽琛屽埌涓嬮潰涓ゅ彞鏃?榪欐墠鐪熸浣跨敤鍒癲esks闆嗗悎鏃?
  Set Desks = room.getDesks();
  CollectionsUtils.toString(Desks);
Hibernate灝變細鏍規(guī)嵁鍘熸潵lazy璁懼畾鐨勬柟寮忥紝鍙朎ntityManager錛?鏍規(guī)嵁瀹冧粠鏁版嵁搴撴煡璇?Desk瀹炵幇鐨勬暟鎹紝榪欐椂涓婇潰鎴戜滑宸茬粡鎻愬埌錛屼簨鍔″凡緇忛殢getRoomById鏂規(guī)硶鐨勮繍琛岀粨鏉熸彁浜? EntityManager瀵硅薄涔熷凡緇忓叧闂傛鏃跺啀璋冪敤 EntityManager鎿嶄綔錛屽氨浼氭姤EntityManager has been closed 寮傚父(lazy load exception)

   ok, 娓呮榪欏潡錛屽ぇ瀹舵湁鏃跺彲鑳戒篃鐚滄兂鍒頒簡Spring榪欎釜瑙e喅鏂規(guī)鏄庝箞澶勭悊鐨勪簡銆?br />    Spring鐨凾ransactionInterceptor 鍏跺氨鏄氳繃AOP璐熻矗鎷︽埅鐫鎵鏈夐拡瀵逛簨鍔ransactionManager鐨勬搷浣?
   榪欐牱Spring灝卞彲浠ラ拡瀵筶azy寮傚父榪涜鎷︽埅浜嗐?br />
   娓呮涓婇潰鐨勫悗錛屼笅闈㈢殑浠g爜鏄潪甯稿ソ鐞嗚В浜嗭紝鏉ョ湅涓涓婳penEntityManagerInViewFilter鐨勪唬鐮?
鎴戝姞浜嗕簺娉ㄩ噴錛屽ぇ瀹跺緢瀹規(guī)槗鏄庣櫧:

 1     protected void doFilterInternal(
 2             HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
 3             throws ServletException, IOException {
 4 
 5       //閫氳繃WebApplicationContext,浠嶹eb鏈嶅姟涓彇寰梒ontext瀹炰緥鍚庯紝鏍規(guī)嵁EntityManagerFactory.class綾誨瀷
 6       //鍙栧緱EntityManagerFacotry瀹炰緥
 7         EntityManagerFactory emf = lookupEntityManagerFactory(request);
 8         boolean participate = false;
 9 
10         //濡傛灉闈欐佹柟娉昲asResource宸茬粡鏈塃ntityManagerFactory瀹炰緥浜嗭紝灝變笉鐢ㄥ啀閫氳繃
11         //EntityManagerFactory鍒涘緩涓涓柊EntityManger浜?/span>
12         if (TransactionSynchronizationManager.hasResource(emf)) {
13             // Do not modify the EntityManager: just set the participate flag.
14             participate = true;
15         }
16         else {
17             logger.debug("Opening JPA EntityManager in OpenEntityManagerInViewFilter");
18             try {
19             //閫氳繃EntityManagerFactory鍒涘緩涓涓柊EntityManger,騫墮氳繃bindResource鏂規(guī)硶
20             //淇濆瓨鍒癟ransactionSynchronizationManager涓?br /> 21             //榪欐牱錛岄歍ransactionSynchronizationManager鐨刧etResource鏂規(guī)硶鍙栧緱EntityMangerHolder
22                 EntityManager em = createEntityManager(emf);
23                 TransactionSynchronizationManager.bindResource(emf, new EntityManagerHolder(em));
24             }
25             catch (PersistenceException ex) {
26                 throw new DataAccessResourceFailureException("Could not create JPA EntityManager", ex);
27             }
28         }
29 
30         try {
31             filterChain.doFilter(request, response);
32         }
33 
34         finally {
35             if (!participate) {
36             //姣忔璇鋒眰緇撴潫鍚庯紝灝辨妸EntityManager鍏抽棴
37                 EntityManagerHolder emHolder = (EntityManagerHolder)
38                         TransactionSynchronizationManager.unbindResource(emf);
39                 logger.debug("Closing JPA EntityManager in OpenEntityManagerInViewFilter");
40                 EntityManagerFactoryUtils.closeEntityManager(emHolder.getEntityManager());
41             }
42         }
43     }
44    

    涓婇潰鐨勪唬鐮佸氨涓嶇敤澶氳В閲婁簡錛?鍒扮幇鍦ㄥ凡緇忓緢娓呮鐭ラ亾Spring閽堝 Hibernate鐨凩azy闂鏄庝箞瑙e喅鐨勩?br />     褰撶劧鎴戜滑鍙互鎵╁睍鍒伴櫎Web鏈嶅姟浠ュ錛屾潵瀹炵幇瑙e喅lazy鐨勯棶棰樸?鎴戜滑鑷繁鏉ョ鐞員ransactionSynchronizationManager灝卞彲浠ヤ簡)
   
    褰撶劧Spring閽堝 Hibernate(闈濲PA鐨勫疄鐜?鍘熺悊涔熸槸涓鏍鳳紝鍙槸瀹冮拡瀵圭殑SessionFactory,涔熸槸鐢盩ransactionSynchronizationManager鏉ョ粺涓綆$悊銆?br />    
    鏈鍚庡鏋滃ぇ瀹跺榪樻湁涓嶆竻妤氱殑錛屾榪庝竴璧瘋璁恒?br />    
Good Luck!
Yours Matthew!



x.matthew 2008-10-11 18:01 鍙戣〃璇勮
]]>
Spring3.0鏂扮壒寰?Restful support MVChttp://www.tkk7.com/xmatthew/archive/2008/09/02/226474.htmlx.matthewx.matthewTue, 02 Sep 2008 11:32:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/09/02/226474.htmlhttp://www.tkk7.com/xmatthew/comments/226474.htmlhttp://www.tkk7.com/xmatthew/archive/2008/09/02/226474.html#Feedback4http://www.tkk7.com/xmatthew/comments/commentRss/226474.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/226474.html
鍖呮嫭寰堝鏂板姛鑳斤紝濡傛爣棰樹腑鎻愬埌鐨凴estful鐨勬敮鎸侊紝榪樻湁Servlet3.0鐨勬敮鎸佺瓑銆?br /> 澶ф鎬葷粨浜嗕竴涓嬶紝Spring3.0涓細鍖呮嫭浠ヤ笅涓浜涙柊鐗規(guī)?
  • 1. Full scale REST support by means of additions to the Spring MVC API - already pretty detailed, and apparently going to be included in the first milestone release
  • 2. Support for Unified EL (as seen in Spring Web Flow) - very likely part of 3.0, but no details given
  • 3. Annotation support for declaring factory methods - as above
  • 4 .Support for Portlet 2.0 (JSR 286), including resource requests (ResourceServingPortlet) - as above
  • 5. "Preparations" for Servlet 3.0 specification - sounded a lot like architectural preparations not visible to the "consumer"
  • 6. Something to fill the gap between Spring Web Flow and Spring MVC - that sounded very vague
  • 7. Inclusion (probably generalisation) of the repeat, retry and resume semantics provided by Spring Batch - was only hinted at, no details given
  • 8. Inclusion of the OXM support provided by Spring WS - sounded pretty definitive, but no details given
  • 9. Some kind of site definition language for the web stack - no idea whether this is more than a rumour
  • 10. Model-based validation for use both in server and client - as above

涓嬮潰鎴戜滑鍏蜂綋浠嬬粛涓涓婻estful璇ョ壒鎬?
  鍒氭墠鎴戜篃鎻愬埌浜嗭紝Spring3.0鏄熀浜庡叾鐩墠鎻愪緵鐨凷pring MVC妗嗘灦涓婂紩鍏ュRest鐨勬敮鎸侊紝榪欐牱浣垮叾鍙互寰堝ソ鐨勮瀺鍚堝埌Spring涓?br />   涓嬮潰鏈変竴孌典唬鐮侊紝澶у鐪嬩簡浼氭洿鏈変綋浼氥?br />    鍏堢湅涓涓嬪浣曞彂甯僐est椋庢牸鐨勬湇鍔℃帴鍙?br />
1 @RequestMapping(value = "/gadgets/{id}",
2       method = RequestMethod.GET)
3 public View getGadget(@PathParam String id) {
4   // 鍔熻兘鏄牴鎹?id 鏌ヨ Gadget瀵硅薄
5   // 榪斿洖View瀵硅薄
6 }
7 
   鐪嬪埌浣跨敤Annotation鏂瑰紡錛屼唬鐮侀潪甯哥畝媧併侤RequestMapping鏄璁挎眰鐨勮祫婧愯繘琛屾湇鍔$殑緇戝畾錛?value鎸囧畾鏈嶅姟鐨勮祫婧愯礬寰? method鏄寚Rest椋庢牸涓殑CRUD鐨勬柟娉曘?br />    @PathParam鏄璧勬簮璺箞鍙傛暟鐨勮В鏋?瀹冧細鑷姩鏍規(guī)嵁鎻愪氦鐨勬暟鎹牸寮忥紝瑙f瀽鍙傛暟鍊箋?br />
   涓嬮潰鏉ョ湅涓涓?strong>RestTemplate錛屽Rest鏈嶅姟鎺ュ彛鐨勮皟鐢?
 
 1 // 浣跨敤getForObject鎵ц鏌ヨ鎿嶄綔
 2 //  (鎸囧畾鍙傛暟鎻愪氦鏂瑰紡)
 3 RestTemplate template = new RestTemplate();
 4 Gadget gadget = template.getForObject(
 5     "http://www.springify.com/gadgets/{id}",
 6     Gadget.class1);
 7 
 8 // 浣跨敤postForLocation 鎵ц鏂板鎿嶄綔
 9 // (鎸囧畾鍙傛暟鎻愪氦鏂瑰紡,浣跨敤Map瀵硅薄)
10 Map<String, String> params =
11     new HashMap<String, String>();
12 params.put("id"42);
13 URI uri = template.postForLocation(
14     "http://www.springify.com/gadgets/{id}/features",
15     new Feature("Glows in the dark."), params);
16 
17 // 鍒犻櫎鎿嶄綔鐨勬紨紺?/span>
18 template.delete(
19     "http://www.springify.com/gadgets/{id}", someId);
20 
21
29 

鎬葷粨錛氬彲浠ョ湅鍒頒嬌鐢≧est椋庢牸鐨勬湇鍔″彂甯冿紝鍙互瀵規(guī)湇鍔¤祫婧愯繘琛岀粺涓鐨勭鐞嗭紝浣跨敤鍙戝竷鐨勬帴鍙f洿娓呮櫚銆?br />
褰撶劧鍦⊿pring 3.0 鍙戝竷涔嬪墠錛屼笂榪扮殑API錛宎nnotation鍙兘浼氭湁鍙樺姩錛屾垜浠篃鏈熷緟Spring鑳戒笌鎴戜滑鏃╂棩瑙侀潰銆?br />
鏈鍚庯紝鐢變簬鏈漢瀵筊est鎶鏈簡瑙h繕涓嶆槸澶繁鍏ワ紝涔熷笇鏈涘ぇ瀹惰兘澶氭彁浜涙剰瑙佸拰寤鴻銆?br />
Good Luck!
Yours Matthew!



x.matthew 2008-09-02 19:32 鍙戣〃璇勮
]]>
hibernate-memcached--鍦℉ibernate涓嬌鐢∕emcached浣滀負涓涓簩綰у垎甯冨紡緙撳瓨http://www.tkk7.com/xmatthew/archive/2008/08/20/223293.htmlx.matthewx.matthewWed, 20 Aug 2008 08:43:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/08/20/223293.htmlhttp://www.tkk7.com/xmatthew/comments/223293.htmlhttp://www.tkk7.com/xmatthew/archive/2008/08/20/223293.html#Feedback11http://www.tkk7.com/xmatthew/comments/commentRss/223293.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/223293.html闃呰鍏ㄦ枃

x.matthew 2008-08-20 16:43 鍙戣〃璇勮
]]>
婧愪唬鐮佽В璇籆as瀹炵幇鍗曠偣鐧誨嚭(single sign out)鍔熻兘瀹炵幇鍘熺悊http://www.tkk7.com/xmatthew/archive/2008/07/09/213808.htmlx.matthewx.matthewWed, 09 Jul 2008 14:44:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/07/09/213808.htmlhttp://www.tkk7.com/xmatthew/comments/213808.htmlhttp://www.tkk7.com/xmatthew/archive/2008/07/09/213808.html#Feedback13http://www.tkk7.com/xmatthew/comments/commentRss/213808.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/213808.html闃呰鍏ㄦ枃

x.matthew 2008-07-09 22:44 鍙戣〃璇勮
]]>
Spring Integration 瀛︿範絎旇(緇?http://www.tkk7.com/xmatthew/archive/2008/05/28/195731.htmlx.matthewx.matthewWed, 28 May 2008 13:38:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/05/28/195731.htmlhttp://www.tkk7.com/xmatthew/comments/195731.htmlhttp://www.tkk7.com/xmatthew/archive/2008/05/28/195731.html#Feedback1http://www.tkk7.com/xmatthew/comments/commentRss/195731.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/195731.html     endpoint閰嶇疆鐩稿姣旇緝鐏墊椿錛屼笅闈㈠啀鏉ョ湅涓涓緥瀛愶細
        <endpoint input-channel="inputChannel"
              default-output-channel
="outputChannel"
              handler-ref
="helloService"
              handler-method
="sayHello"/>
      
<beans:bean id="helloService" class="org.springframework.integration.samples.helloworld.HelloService"/> 

1         public class HelloService {
2         
3             public String sayHello(String name) {
4                 return "Hello " + name;
5             }
6         }

 涓婇潰榪欎釜渚嬪瓙灝辨紨紺轟簡鎶?HelloService閰嶇疆鎴愪竴涓狹essageEndpoint緇勪歡錛屾秷鎭粠"inputChannel"闃熷垪鎺ユ敹鍚庯紝
 璋冪敤HelloService.sayHello鏂規(guī)硶錛岀瓑sayHello鏂規(guī)硶榪斿洖鍚庯紝鏍規(guī)嵁default-output-channel="outputChannel"鐨勯厤緗?br />  鎶婅繑鍥炵殑緇撴灉淇濆瓨鍒癿essage.payload灞炴у悗鍙戦佺粰"outputChannel"闃熷垪

涔熷彲鏀規(guī)垚Annotation鐨勬柟寮忥紝閰嶇疆鏂規(guī)硶濡備笅錛?br />
    <annotation-driven/>
    
<message-bus auto-create-channels="true"/>
    
<context:component-scan base-package="org.springframework.integration.samples.helloworld"/>
    
    
<beans:bean id="helloService" class="org.springframework.integration.samples.helloworld.HelloService"/>

1 @MessageEndpoint(input="inputChannel", defaultOutput="outputChannel")
2 public class HelloService {
3 
4     @Handler
5     public String sayHello(String name) {
6             return "Hello " + name;
7     }
8 }

璁劇疆騫跺彂鎿嶄綔灞炴?br /> xml閰嶇疆錛?br />
<endpoint input-channel="exampleChannel" handler-ref="exampleHandler"/>
        
<!-- 璁劇疆騫跺彂璁劇疆 core鏍稿績綰跨▼鏁?nbsp;max鏈澶х嚎紼嬫暟 queue-capacity 闃熷垪鏈澶ф秷鎭暟 keep-alive idle綰跨▼鐢熷懡鏃墮棿-->
    
<concurrency core="5" max="25" queue-capacity="20" keep-alive="120"/>
</endpoint>


annotation閰嶇疆
1 @MessageEndpoint(input="fooChannel")
2 @Concurrency(coreSize=5, maxSize=20, queueCapacity=20, keepAliveSeconds=120)
3 public class FooService {
4 
5     @Handler
6     public void bar(Foo foo) {
7         
8     }
9 }

涓嬮潰鎬葷粨涓涓嬪父瑙佺殑annotation鐨勪嬌鐢ㄦ柟娉?br /> @MessageEndpoint
瀹冭〃紺哄鐞嗘秷鎭璞$殑緇堢鑺傜偣銆備竴鑸笌鍏跺畠鐨勫厓鏁版嵁鏍囪涓璧蜂嬌鐢ㄣ?br /> 涓嬮潰浼氬叿浣撲粙緇嶄笌璇ュ厓鏁版嵁鏍囪涓璧蜂嬌鐢ㄧ殑鍏跺畠鏍囪瘑鐨勪嬌鐢ㄦ柟娉曘?br />
@MessageEndpoint婧愪唬鐮侊細

 1 @Target(ElementType.TYPE)
 2 @Retention(RetentionPolicy.RUNTIME)
 3 @Inherited
 4 @Documented
 5 @Component
 6 public @interface MessageEndpoint {
 7 
 8     String input() default ""//鎺ユ敹娑堟伅鐨勯槦鍒楀悕縐?/span>
 9     String defaultOutput() default ""//榛樿鍙戦佹秷鎭殑闃熷垪鍚嶇О(鍙湁鍦ㄤ笉璁劇疆@Router鎯呭喌涓嬫墠鏈夋晥)
10     int pollPeriod() default 0//鍙戦佹秷鎭殑杞驚鏃墮棿闂撮殧(鍙湁鍦ㄤ笉璁劇疆@Router鎯呭喌涓嬫墠鏈夋晥)
11 }

@Handler
娑堟伅鍥炶皟澶勭悊鐨勬柟娉曘備笌@MessageEndpoint涓璧烽厤緗?span style="color: red;">(鍙檺M3鐗堬紝M4浠ュ強鍚庣畫鐗堟湰鍙互鍗曠嫭浣跨敤,鍏蜂綋浣跨敤鏂規(guī)硶榪樿絳夊叿浣撶殑瀹炵幇鍑烘潵)錛屾敹鍒癷nput闃熷垪鐨勬秷鎭悗錛屽洖璋傽Handler鏍囪瘑鐨勬柟娉?br /> 鍥炶皟鏂規(guī)硶鐨勫弬鏁扮被鍨嬪繀欏諱笌message.payload灞炴х被鍨嬬浉鍚?br /> 娉細濡傛灉鍥炶皟鏂規(guī)硶鏈夎繑鍥炲? 鍒欏洖璋冩柟娉曞鐞嗗畬鎴愬悗錛屼細灝嗚繑鍥炲艱緗埌message.payload灞炴у悗錛?br /> 鍙戦佹秷鎭埌@MessageEndpoint鐨刣efaultOutput闃熷垪銆傚鏋渄efaultOutput娌℃湁璁懼畾錛屽垯灝嗘姏鍑哄紓甯搞?br />
@Handler婧愪唬鐮侊細

1 @Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
2 @Retention(RetentionPolicy.RUNTIME)
3 @Inherited
4 @Documented
5 public @interface Handler {
6 
7 }

涓嬮潰鐨勪緥瀛愭紨紺轟簡錛屼粠"channel1"闃熷垪鎺ユ敹娑堟伅鍚庣敱@Handler鏍囪鐨勬柟娉曞鐞嗐傛秷鎭殑payload灞炴у肩殑綾誨瀷蹇呴』涓庢柟娉曠殑鍙傛暟綾誨瀷鐩稿悓
1 @MessageEndpoint(input="channel1")
2 public class FooService {
3 
4     @Handler
5     public void bar(Foo foo) {
6         
7     }
8 }


@Polled
蹇呴』涓嶡MessageEndPoint 涓璧蜂嬌鐢ㄣ備絾涔熷彲浠ヤ笌@Router,@Splitter鏍囪瘑閰嶅悎浣跨敤錛屽悗闈㈠啀鍒嗗埆涓句緥璇存槑銆?br /> @Polled 鐢ㄤ簬寮鍚竴涓疆寰殑鏂瑰紡璋冪敤鏂規(guī)硶鐨勫姛鑳?br /> 瀹冩湁涓変釜鍙傛暟錛?br />     period: 杞驚鏃墮棿闂撮殧(鍗曚綅:寰) 榛樿涓?1000
    initialDelay:  杞驚寤惰繜鏃墮棿(鍗曚綅:寰) 榛樿涓?
    fixedRate: 榛樿涓篺alse
   
@Polled 婧愪唬鐮?br />
 1 @Target(ElementType.METHOD)
 2 @Retention(RetentionPolicy.RUNTIME)
 3 @Inherited
 4 @Documented
 5 public @interface Polled {
 6     int period() default 1000;
 7     long initialDelay() default PollingSchedule.DEFAULT_INITIAL_DELAY;
 8     boolean fixedRate() default PollingSchedule.DEFAULT_FIXED_RATE;
 9 
10 
 
   
涓嬮潰鏉ョ湅鍑犱釜渚嬪瓙錛?br /> 渚嬪瓙1:
 1 @MessageEndpoint(defaultOutput="outputChannel")
 2 public class Counter {
 3 
 4     private AtomicInteger count = new AtomicInteger();
 5 
 6     @Polled(period=3000)
 7     public int getNumber() {
 8         return count.incrementAndGet();
 9     }
10 }  

榪欎釜渚嬪瓙鍔熻兘鏄紝MessageBus鍚姩鍚庯紝鐢盄Polled鏍囪 姣?縐掕Е鍙慻etNumber鏂規(guī)硶錛屽綋getNumber鏂規(guī)硶榪斿洖鍚庯紝
鎶婅繑鍥炲艱緗埌message.payload灞炴у悗錛屽彂閫佸埌outputChannel闃熷垪涓?br />

渚嬪瓙2:
 1 @MessageEndpoint
 2 public class Counter {
 3 
 4     private AtomicInteger count = new AtomicInteger();
 5 
 6     @Polled(period=3000)
 7     public int getNumber() {
 8         return count.incrementAndGet();
 9     }
10 
11     @Router
12     public String resolveChannel(int i) {
13         if (i % 2 == 0) {
14             return "even";
15         }
16         return "odd";
17     }
18 }   

榪欎釜渚嬪瓙鍔熻兘鏄紝MessageBus鍚姩鍚庯紝鐢盄Polled鏍囪 姣?縐掕Е鍙慻etNumber鏂規(guī)硶, 褰揼etNumber鏂規(guī)硶榪斿洖鍚?
鐢變簬resolveChannel鏂規(guī)硶璁劇疆浜咢Router 鏍囪瘑錛屽垯鎶婃湁getNumber鏂規(guī)硶榪斿洖鍊奸兘浼氫紶緇檙esolveChannel鏂規(guī)硶錛屾渶鍚?br /> 浼氭牴鎹柟娉曠殑榪斿洖鍊?鍗抽槦鍒楀悕縐? (@Router鏍囪鍔熻兘)錛屾妸娑堟伅鍙戝埌even闃熷垪鎴栨槸odd闃熷垪

娉細濡傛灉@MessageEndpoint綾諱腑錛屽湪鏂規(guī)硶涓婃爣璁頒簡@Router鏍囪鍚庯紝@MessageEndpoint鐨刣efaultOutput灝卞彉鎴愭棤鏁堜簡銆?/span>

@Splitter
蹇呴』涓嶡MessageEndPoint 涓璧蜂嬌鐢ㄣ?br /> 璇ュ厓鏁版嵁鏍囪瘑鐢ㄤ簬鍒嗚В娑堟伅鍐呭錛屽畠鎵鍦ㄧ殑鏂規(guī)硶鐨勮繑鍥炲煎繀欏繪槸涓涓泦鍚?collection).濡傛灉闆嗗悎鍏冪礌涓嶆槸Message綾誨瀷
浣嗗彂閫佹椂錛岃嚜鍔ㄦ妸闆嗗悎涓殑鍏冪礌瀵硅薄淇濆瓨鍒癕essage.payload灞炴у悗鍙戦併傞泦鍚堜腑鏈夊灝戜釜鍏冪礌錛屽垯浼氬彂閫佸灝戞娑堟伅銆?br />
1 @Target(ElementType.METHOD)
2 @Retention(RetentionPolicy.RUNTIME)
3 @Documented
4 @Handler
5 public @interface Splitter {
6     String channel(); //娑堟伅鍙戦佺殑闃熷垪鍚?/span>
7 }


涓嬮潰涓や釜渚嬪瓙瀹炵幇鏁堟灉鏄竴鏍風殑
渚嬪瓙1
 1 @MessageEndpoint(input="inputChannel")
 2 public class HelloService {
 3 
 4    @Splitter(channel="outputChannel")
 5     public List<String> sayHello(String name) {
 6         String s =  "Hello " + name;
 7         List<String> list = new ArrayList<String>();
 8         list.add(s);
 9         return list;
10     }
11 }
12 

渚嬪瓙2
 1 @MessageEndpoint(input="inputChannel")
 2 public class HelloService {
 3 
 4    @Splitter(channel="outputChannel")
 5     public List<Message> sayHello(String name) {
 6         String s =  "Hello " + name;
 7         List<Message> list = new ArrayList<Message>();
 8         Message message = new GenericMessage<String>(s);
 9         list.add(message);
10         return list;
11     }
12 }


@Router
娑堟伅闃熷垪璺敱鍔熻兘銆?蹇呴』涓嶡MessageEndPoint 涓璧蜂嬌鐢ㄣ?br /> 瀹冩墍鍦ㄧ殑鏂規(guī)硶鐨勮繑鍥炲肩被鍨嬪繀欏繪槸MessageChannle鎴栨槸String(channel name)綾誨瀷
鍏蜂綋鐨勪緥瀛愬弬鑰冧笂闈€?br />
@Publisher
蹇呴』涓嶡MessageEndPoint 涓璧蜂嬌鐢ㄣ?br /> 璇存槑錛欯Publisher 鏍囪瘑鏄牴鎹?after-returning 鍒囬潰鐨凙OP 鍦ㄦ柟闈㈣繑鍥炲兼椂錛屽彂閫佹秷鎭埌鎸囧畾娑堟伅闃熷垪 .    

涓嬮潰鐨勪緥瀛愶細璇存槑 foo鏂規(guī)硶璋冪敤鍚庯紝榪斿洖鍊間細鍙戦佸埌fooChannel娑堟伅闃熷垪
1 @Publisher(channel="fooChannel")
2 public String foo() {
3     return "bar";
4 }
 

@Subscriber 
蹇呴』涓嶡MessageEndPoint 涓璧蜂嬌鐢ㄣ?br /> 鎺ユ敹鎸囧畾闃熷垪鐨勬秷鎭唴瀹廣傚畠瀹炵幇鐨勫紓姝ョ殑娑堟伅鐩戝惉浜嬩歡銆?br /> 涓鏃︽湁娑堟伅鎺ユ敹鍒幫紝鍒欎細鏍規(guī)嵁message.payload 鍊間綔涓哄弬鏁幫紝鍥炶皟@Subscriber 鏍囪瘑鏍囪鐨勬柟娉?br />
1 @Subscriber(channel="fooChannel")
2 public void log(String foo) {
3     System.out.println(foo);
4 }


Good Luck!
Yours Matthew!
2008騫?鏈?4鏃?br />





x.matthew 2008-05-28 21:38 鍙戣〃璇勮
]]>
Spring Integration 瀛︿範絎旇http://www.tkk7.com/xmatthew/archive/2008/05/28/193542.htmlx.matthewx.matthewWed, 28 May 2008 03:49:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/05/28/193542.htmlhttp://www.tkk7.com/xmatthew/comments/193542.htmlhttp://www.tkk7.com/xmatthew/archive/2008/05/28/193542.html#Feedback6http://www.tkk7.com/xmatthew/comments/commentRss/193542.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/193542.html闃呰鍏ㄦ枃

x.matthew 2008-05-28 11:49 鍙戣〃璇勮
]]>
JAAS瀛︿範絎旇http://www.tkk7.com/xmatthew/archive/2008/05/28/195180.htmlx.matthewx.matthewWed, 28 May 2008 01:27:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/05/28/195180.htmlhttp://www.tkk7.com/xmatthew/comments/195180.htmlhttp://www.tkk7.com/xmatthew/archive/2008/05/28/195180.html#Feedback2http://www.tkk7.com/xmatthew/comments/commentRss/195180.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/195180.html闃呰鍏ㄦ枃

x.matthew 2008-05-28 09:27 鍙戣〃璇勮
]]>
Spring 2.5 閰嶇疆鏂囨。甯姪鍗$墖http://www.tkk7.com/xmatthew/archive/2008/05/23/202307.htmlx.matthewx.matthewFri, 23 May 2008 00:51:00 GMThttp://www.tkk7.com/xmatthew/archive/2008/05/23/202307.htmlhttp://www.tkk7.com/xmatthew/comments/202307.htmlhttp://www.tkk7.com/xmatthew/archive/2008/05/23/202307.html#Feedback2http://www.tkk7.com/xmatthew/comments/commentRss/202307.htmlhttp://www.tkk7.com/xmatthew/services/trackbacks/202307.html 璇ュ崱鐗囨彁渚涙瘮杈冭緇嗕粙緇嶄簡spring2.5 xml鐨勯厤緗?鍖呮嫭浠ヤ笅鍥涢儴鍒?br />
  • XML elements available as of Spring 2.5(Spring2.5 xml鏍囩閰嶇疆)
  • Most commonly used elements(甯哥敤鐨剎ml鏍囩浣跨敤鏂規(guī)硶)
  • Namespaces錛堝懡鍚嶇┖闂?
  • Guide to Spring’s rich set of annotations(Spring鏀寔鐨刟nnotations鎶鏈嬌鐢ㄦ寚鍗?

 瀹樻柟涓嬭澆鍦板潃

涓嬮潰鏄畼鏂瑰彂甯冪殑鍐呭鐨勫師鏂?http://www.springframework.org/node/660
DZone has just published a reference card for Spring 2.5 Configuration. The card was written by the very knowledgeable Craig Walls and provides exhaustive details about all the XML configuration options for your Spring 2.5 contexts. It provides a handy desktop reference for any developer building Spring powered applications. XML averse developers should also check out the options in Spring 2.5 for annotation based configuration.



x.matthew 2008-05-23 08:51 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲国产成人a精品不卡在线| 无码人妻久久一区二区三区免费| 亚洲av乱码一区二区三区按摩 | 国产精品99精品久久免费| 成人特级毛片69免费观看| 免费观看四虎精品成人| 国产亚洲男人的天堂在线观看 | 久久久久久亚洲AV无码专区| 亚洲成AV人片在线播放无码| 国产精品亚洲A∨天堂不卡| 亚洲日韩欧洲无码av夜夜摸| www在线观看播放免费视频日本| 美女羞羞视频免费网站| 黄色免费在线网址| 一级中文字幕乱码免费| 在线观看片免费人成视频播放| 三级黄色免费观看| 一级成人a毛片免费播放| 9420免费高清在线视频| 一个人看的www视频免费在线观看 一个人看的免费观看日本视频www | 久久久免费的精品| 最近最新高清免费中文字幕 | 亚洲欧美日韩自偷自拍| 亚洲av无码专区在线观看下载| 国产成人亚洲综合无| 国产伦精品一区二区免费| 国产偷伦视频免费观看| 69影院毛片免费观看视频在线| 青娱分类视频精品免费2| 永久免费看bbb| 国产国拍亚洲精品福利 | 亚洲人成小说网站色| 性色av极品无码专区亚洲| 深夜免费在线视频| 成在人线av无码免费高潮喷水 | 中文字幕日本人妻久久久免费| 99精品视频免费观看| 两个人www免费高清视频| 久久免费区一区二区三波多野| 精品久久8x国产免费观看| 日韩免费视频播播|