锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲色偷偷狠狠综合网,麻豆亚洲AV成人无码久久精品 ,亚洲欧洲在线播放http://www.tkk7.com/xfan/archive/2006/06/15/53099.html~灝廞~灝廞Thu, 15 Jun 2006 14:44:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/15/53099.htmlhttp://www.tkk7.com/xfan/comments/53099.htmlhttp://www.tkk7.com/xfan/archive/2006/06/15/53099.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/53099.htmlhttp://www.tkk7.com/xfan/services/trackbacks/53099.html
娉ㄨВ錛?br />1.spring mvc璇鋒墍鏈夌殑璇鋒眰閮芥彁浜ょ粰DispatcherServlet,瀹冧細(xì)濮旀墭搴旂敤緋葷粺鐨勫叾浠栨ā鍧楄礋璐h礋璐e璇鋒眰榪涜鐪熸鐨勫鐞嗗伐浣溿?br />2.DispatcherServlet鏌ヨ涓涓垨澶氫釜HandlerMapping,鎵懼埌澶勭悊璇鋒眰鐨凜ontroller.
3.DispatcherServlet璇瘋姹傛彁浜ゅ埌鐩爣Controller
4.Controller榪涜涓氬姟閫昏緫澶勭悊鍚庯紝浼?xì)杩斿洖涓涓狹odelAndView
5.Dispathcher鏌ヨ涓涓垨澶氫釜ViewResolver瑙嗗浘瑙f瀽鍣?鎵懼埌ModelAndView瀵硅薄鎸囧畾鐨勮鍥懼璞?br />6.瑙嗗浘瀵硅薄璐熻矗娓叉煋榪斿洖緇欏鎴風(fēng)

~灝廞 2006-06-15 22:44 鍙戣〃璇勮
]]>
Quartz鐨刢ron琛ㄨ揪寮?/title><link>http://www.tkk7.com/xfan/archive/2006/06/14/52801.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Wed, 14 Jun 2006 09:36:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/14/52801.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/52801.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/14/52801.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/52801.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/52801.html</trackback:ping><description><![CDATA[     鎽樿: 浠嬬粛Quartz鐨刢ron琛ㄨ揪寮?nbsp; <a href='http://www.tkk7.com/xfan/archive/2006/06/14/52801.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/xfan/aggbug/52801.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-14 17:36 <a href="http://www.tkk7.com/xfan/archive/2006/06/14/52801.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦╯pring鍒╃敤javamail錛宷uartz瀹氭椂鍙戦侀偖浠?/title><link>http://www.tkk7.com/xfan/archive/2006/06/13/52577.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Tue, 13 Jun 2006 14:06:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/13/52577.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/52577.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/13/52577.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/52577.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/52577.html</trackback:ping><description><![CDATA[聽聽聽聽 鍦╳eb寮鍙戜腑錛屾垜浠粡甯擱渶瑕佸畾鏃跺畬鎴愪竴浜涘姛鑳姐傛瘮濡傚畾涔夌粺璁℃姤琛ㄥ晩錛岀粺璁$敤鎴鋒帓鍚嶇瓑絳夈傚埄鐢╯pring灝卞彲浠ヨ交鏉懼湴鍋氬埌榪欎簺浠誨姟銆備笅闈㈡垜灝變互瀹氭椂鍙戦侀偖浠舵潵鏉ュ睍紺哄浣曞埄鐢╯pring瀹氭椂鍙戦侀偖浠訛紝浠ュ強(qiáng)spring瀵笿avaMail鐨勭畝鍖栥?br />MailService.java綾?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽com.open.quartz;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.mail.MailException;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.mail.MailSender;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.mail.SimpleMailMessage;<br /><img id="Codehighlighter1_192_610_Open_Image" onclick="this.style.display='none'; Codehighlighter1_192_610_Open_Text.style.display='none'; Codehighlighter1_192_610_Closed_Image.style.display='inline'; Codehighlighter1_192_610_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_192_610_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_192_610_Closed_Text.style.display='none'; Codehighlighter1_192_610_Open_Image.style.display='inline'; Codehighlighter1_192_610_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽MailService聽</span><span id="Codehighlighter1_192_610_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_192_610_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">聽MailSender聽mailSender;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">聽SimpleMailMessage聽mailMessage;//閭歡妯℃澘<br /><img id="Codehighlighter1_290_589_Open_Image" onclick="this.style.display='none'; Codehighlighter1_290_589_Open_Text.style.display='none'; Codehighlighter1_290_589_Closed_Image.style.display='inline'; Codehighlighter1_290_589_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_290_589_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_290_589_Closed_Text.style.display='none'; Codehighlighter1_290_589_Open_Image.style.display='inline'; Codehighlighter1_290_589_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽sendMail()聽</span><span id="Codehighlighter1_290_589_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_290_589_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">-----------鍙戦侀偖浠?---------</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽SimpleMailMessage聽msg</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽SimpleMailMessage(</span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.mailMessage);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽msg.setText(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">this聽is聽a聽test聽mail</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img id="Codehighlighter1_452_481_Open_Image" onclick="this.style.display='none'; Codehighlighter1_452_481_Open_Text.style.display='none'; Codehighlighter1_452_481_Closed_Image.style.display='inline'; Codehighlighter1_452_481_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_452_481_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_452_481_Closed_Text.style.display='none'; Codehighlighter1_452_481_Open_Image.style.display='inline'; Codehighlighter1_452_481_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000">聽</span><span id="Codehighlighter1_452_481_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_452_481_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽mailSender.send(msg);<br /><img id="Codehighlighter1_507_535_Open_Image" onclick="this.style.display='none'; Codehighlighter1_507_535_Open_Text.style.display='none'; Codehighlighter1_507_535_Closed_Image.style.display='inline'; Codehighlighter1_507_535_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_507_535_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_507_535_Closed_Text.style.display='none'; Codehighlighter1_507_535_Open_Image.style.display='inline'; Codehighlighter1_507_535_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(MailException聽e)聽</span><span id="Codehighlighter1_507_535_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_507_535_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">-----------鍙戦佹垚鍔?---------</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">鐪佺暐set,get鏂規(guī)硶</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span><span style="COLOR: #000000">}</span></span></div>鍦╳eb.xml閲屾坊鍔犱互涓嬩唬鐮?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">listener</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">listener-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">org.springframework.web.context.ContextLoaderListener</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">listener-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">listener</span><span style="COLOR: #0000ff">></span></div>鍦╓EB-INF鐩綍涓嬫坊鍔燼pplicationContext.xml鏂囦歡<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">beans</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="mailSender"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽class</span><span style="COLOR: #0000ff">="org.springframework.mail.javamail.JavaMailSenderImpl"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="host"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="smtp.163.com"</span><span style="COLOR: #0000ff">/><br /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽<font color="#0000ff"><!--聽鏈変簺閭歡鏈嶅姟鍣ㄥ彂閫侀偖浠墮渶瑕佽璇侊紝鎵浠ュ繀欏繪彁渚涘笎鍙仿?--></font><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="username"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="濉叆鐢ㄦ埛鍚?</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="password"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="濉叆瀵嗙爜"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="javaMailProperties"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">props</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">prop聽</span><span style="COLOR: #ff0000">key</span><span style="COLOR: #0000ff">="mail.smtp.auth"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">true</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">prop</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">props</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽<!--涓涓偖浠舵ā鏉?-><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="mailMessage"</span><span style="COLOR: #ff0000">聽class</span><span style="COLOR: #0000ff">="org.springframework.mail.SimpleMailMessage"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="to"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="asm_c_yuan@163.com"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="from"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="asm_c_yuan@163.com"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="subject"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="test"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">><br /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽 <span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="ms"</span><span style="COLOR: #ff0000">聽class</span><span style="COLOR: #0000ff">="com.open.quartz.MailService"</span><span style="COLOR: #ff0000">聽autowire</span><span style="COLOR: #0000ff">="byName"</span><span style="COLOR: #0000ff">/></span><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="reportJob"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="targetObject"</span><span style="COLOR: #ff0000">聽ref</span><span style="COLOR: #0000ff">="ms"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="targetMethod"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="sendMail"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">><br /></span><span style="COLOR: #000000">聽聽聽聽聽聽 <!--涓涓畝鍗曠殑璋冨害鍣?-><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="simpleTrigger"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.SimpleTriggerBean"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jobDetail"</span><span style="COLOR: #ff0000">聽ref</span><span style="COLOR: #0000ff">="reportJob"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="startDelay"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="1"</span><span style="COLOR: #0000ff">/>聽聽 鍦╳eb鍚姩澶氬皯姣鍚庡惎鍔ㄤ換鍔?/span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="repeatInterval"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="100000000"</span><span style="COLOR: #0000ff">/> 琛ㄧず娌¢殧澶氬皯姣鍚姩</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">><br /></span><span style="COLOR: #000000">聽聽聽聽聽聽 <!--涓涓畾鏃剁殑璋冨害鍣?-><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="cronTrigger"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.CronTriggerBean"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="jobDetail"</span><span style="COLOR: #ff0000">聽ref</span><span style="COLOR: #0000ff">="reportJob"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="cronExpression"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="0聽0聽6聽*聽*聽?"</span><span style="COLOR: #0000ff">/> 鎸囨槑姣忓ぉ鏃╀笂6鐐瑰惎鍔ㄤ換鍔?琛ㄨ揪寮忕殑瑙i噴瑙佷笅綃囨枃绔?/span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">bean聽</span><span style="COLOR: #ff0000">class</span><span style="COLOR: #0000ff">="org.springframework.scheduling.quartz.SchedulerFactoryBean"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">property聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="triggers"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">ref聽</span><span style="COLOR: #ff0000">bean</span><span style="COLOR: #0000ff">="simpleTrigger"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">list</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">property</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">bean</span><span style="COLOR: #0000ff">></span></div>娑夊強(qiáng)鐨刯ar鍖呮湁:spring.jar,javamail.jar,activation.jar,quartz.jar<br /><img src ="http://www.tkk7.com/xfan/aggbug/52577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-13 22:06 <a href="http://www.tkk7.com/xfan/archive/2006/06/13/52577.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>spring瀵筳ava榪滅▼璋冪敤鐨勭畝鍖?涓?涔婬TTPinvoker http://www.tkk7.com/xfan/archive/2006/06/13/52463.html~灝廞~灝廞Tue, 13 Jun 2006 06:02:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/13/52463.htmlhttp://www.tkk7.com/xfan/comments/52463.htmlhttp://www.tkk7.com/xfan/archive/2006/06/13/52463.html#Feedback2http://www.tkk7.com/xfan/comments/commentRss/52463.htmlhttp://www.tkk7.com/xfan/services/trackbacks/52463.html聽聽 spring鐨勭敤娉曡窡hessian,burlap涓鏍楓傛妸浠g悊綾伙紝鍜屾湇鍔¤緭鍑虹被鍒嗗埆鏀規(guī)垚
org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean
org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
灝卞彲浠ヤ簡(jiǎn)錛屼笉鐢ㄦ敼浠g爜灝卞彲浠ヨ繍琛岀浜岃妭鐨勪緥瀛?img src ="http://www.tkk7.com/xfan/aggbug/52463.html" width = "1" height = "1" />

~灝廞 2006-06-13 14:02 鍙戣〃璇勮
]]>
spring瀵筳ava榪滅▼璋冪敤鐨勭畝鍖?浜?涔婬essian,Burlaphttp://www.tkk7.com/xfan/archive/2006/06/13/52446.html~灝廞~灝廞Tue, 13 Jun 2006 05:19:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/13/52446.htmlhttp://www.tkk7.com/xfan/comments/52446.htmlhttp://www.tkk7.com/xfan/archive/2006/06/13/52446.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/52446.htmlhttp://www.tkk7.com/xfan/services/trackbacks/52446.html聽聽聽聽聽聽聽Hessian鍍廟MI閭f牱錛屼嬌鐢ㄤ簩榪涘埗娑堟伅鏉ュ緩绔嬪鎴風(fēng)鍜屾湇鍔$涔嬮棿鐨勪氦嫻併備笌鍏朵粬浜岃繘鍒惰繙紼嬫妧鏈?鎯砇MI)涓嶅悓鐨勬槸錛屽畠鍙互縐繪鍒板叾浠栭潪Java鐨勮璦銆?br />聽聽聽聽聽 Burlap鏄竴縐嶅熀浜嶺ml鐨勮繙紼嬫妧鏈紝榪欎嬌寰椾粬鍙互縐繪鍒頒換浣曞彲浠ヨВ鏋怷ML鐨勮璦涓傛瘮璧稨essian錛屽畠鐨勫彲璇繪ф洿寮恒傚拰鍏朵粬鍩轟簬Xml鐨勮繙紼嬫妧鏈紙濡係OAP鍜孹ML-RPC錛変笉鍚岋紝瀹冪殑娑堟伅緇撴瀯灝藉彲鑳界畝鍗曪紝涓嶉渶瑕侀澶栫殑澶栭儴瀹氫箟璇█(濡俉SDL鎴朓DL).
聽閽堝鍓嶉潰鐨勪緥瀛愶紝鐪嬬湅spring瀵笻essian鍜孊urlap鏄庝箞綆鍖栥?br />1.Hessian
1)瀹㈡埛绔殑閰嶇疆錛屽彧闇瑕佷慨鏀筨ean_client.xml鐨勯厤緗?br />
<beans>
聽聽聽聽
<!--瀹㈡埛绔?/span>-->
聽聽聽聽
<bean聽id="pf" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
聽聽聽聽聽聽聽聽
<property聽name="serviceUrl" 聽value="http://192.168.1.8:8080/spring/pay.service"/>
聽聽聽聽聽聽聽聽
<property聽name="serviceInterface"聽value="com.open.rmi.ex2.PerfectTimeI"/>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="test"聽class="com.open.rmi.ex2.DisplayPerfectTime">
聽聽聽聽聽聽聽聽
<property聽name="pf"聽ref="pf"/>
聽聽聽聽
</bean>
</beans>
Hessian鍜孊urlap鏄熀浜嶩ttp鐨?http://192.168.1.8:8080/spring/pay.service鏄湇鍔$鐨勮闂湴鍧
2)鏈嶅姟绔殑閰嶇疆錛岃繖閲?/font>
閲囩敤spring鐨刴vc
鍏堝湪web.xml涓鍔犱笅闈㈢殑閰嶇疆
<servlet>
聽聽聽聽聽聽聽聽
<servlet-name>Dispatcher</servlet-name>
聽聽聽聽聽聽聽聽
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
聽聽聽聽
<servlet-mapping>
聽聽聽聽聽聽聽聽
<servlet-name>Dispatcher</servlet-name>
聽聽聽聽聽聽聽聽
<url-pattern>*.service</url-pattern>
聽聽聽聽
</servlet-mapping>

絎竴鑺備腑鐨刡ean_server.xml灝辨敼閰嶇疆Dispatcher-servlet.xml鏂囦歡涓簡(jiǎn)
<beans>
聽聽聽聽
<bean聽id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
聽聽聽聽聽聽聽聽
<property聽name="mappings">
聽聽聽聽聽聽聽聽聽聽聽聽
<props>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<prop聽key="/pay.service">hessianService</prop>
聽聽聽聽聽聽聽聽聽聽聽聽
</props>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="hessianService"聽class="org.springframework.remoting.caucho.HessianServiceExporter">
聽聽聽聽聽聽聽聽
<property聽name="service"聽ref="pt"/>
聽聽聽聽聽聽聽聽
<property聽name="serviceInterface"聽value="com.open.rmi.ex2.PerfectTimeI"/>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="pt"聽class="com.open.rmi.ex2.PerfectTime"/>
</bean>
璺熺涓鑺傜殑鐩告瘮鍙槸鏇存崲浜?jiǎn)浠g悊绫诲Q屽惎鍔╰omcat錛屽湪榪愯TestClient灝卞彲浠ョ湅鍒拌緭鍑虹粨鏋滀簡(jiǎn)
2.Burlap
鍙鎶奲ean_client.xml涓殑HessianProxyFactoryBean鏀規(guī)垚BurlapProxyFactoryBean,Dispatcher-servlet.xml涓殑HessianServiceExporter鏀規(guī)垚BurlapServiceExporter錛屽氨鍙互浜?jiǎn)銆?br />聽聽聽聽聽 閫氳繃涓婇潰鍙互鐪嬪埌錛屽簲鐢ㄤ粠綰疪MI杞崲鍒癏essian,Burlap鏄涔堝鏄撳晩!




~灝廞 2006-06-13 13:19 鍙戣〃璇勮
]]>
spring瀵筳ava榪滅▼璋冪敤鐨勭畝鍖?涓)涔婻MIhttp://www.tkk7.com/xfan/archive/2006/06/12/52294.html~灝廞~灝廞Mon, 12 Jun 2006 15:15:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/12/52294.htmlhttp://www.tkk7.com/xfan/comments/52294.htmlhttp://www.tkk7.com/xfan/archive/2006/06/12/52294.html#Feedback2http://www.tkk7.com/xfan/comments/commentRss/52294.htmlhttp://www.tkk7.com/xfan/services/trackbacks/52294.html1.榪滅▼鏂規(guī)硶璋冪敤錛圧MI錛?br />2.Caucho鐨凥essian鍜孊urlap
3.Spring鑷繁鐨凥TTP invoker
4.EJB
5.Web Services
涓.RMI
瀹冪敱5涓寘鍙?涓簲鐢ㄥ伐鍏風(fēng)粍鎴?br />java.rmi 緇勭粐瀹㈡埛绔殑RMI綾匯佹帴鍙e拰寮傚父
java.rmi.server 緇勭粐鏈嶅姟鍣ㄧ鐨凴MI綾?鎺ュ彛鍜屽紓甯?br />java.rmi.registry 緇勭粐鐢ㄤ簬綆$悊RMI鍛藉悕鏈嶅姟鐨勭被
java.rmi.dgc 緇勭粐鐢ㄤ簬綆$悊鍒嗗竷寮忓瀮鍦炬敹闆嗙殑綾?br />java.rmi.activation 緇勭粐鐢ㄤ簬瀹炵幇鎸夐渶嬋媧葷殑RMI鏈嶅姟鐨勭被
rmic 緙栬瘧鍣紝瀹冧駭鐢烺MI浣跨敤鐨勫瓨鏍瑰拰妗嗘灦浠ュ畬鎴愬垎甯冨紡閫氫俊
rmiregistry 涓涓負(fù)RMI鎻愪緵鍛藉悕鏈嶅姟鐨勬湇鍔″櫒錛岃繖欏規(guī)湇鍔℃妸鍚嶅瓧鍜屽璞″叧鑱斿湪涓璧?br />rmid 涓涓敮鎸丷MI嬋媧繪鏋剁殑鏈嶅姟鍣?br />
聽聽聽聽 濡傛灉鍏蜂綋榪樹笉鐭ラ亾浠涔堟槸RMI錛屽彲浠ュ弬鑰冭繖綃囬潪甯鎬笉閿欑殑鏂囩珷銆?a >JavaRMI鍏ラ棬瀹炴垬銆?br />娉ㄦ剰:
聽聽聽 1)瑕佹妸PerfectTime 鍜孭erfectTimeI綾諱腑鐨?br />聽聽 System.setSecurityManager(new RMISecurityManager()); 娉ㄩ噴鎺夛紙鍥犱負(fù)榪欓渶瑕侀厤瀹夊叏絳栫暐錛屾瘮杈冮夯鐑?chǔ)锛?jí)
聽聽聽2)榪樻湁鍦↗DK5涓嬶紝鐢╮mic -d鍛戒護(hù)鐨勮瘽鍙細(xì)杈撳嚭涓涓枃浠訛紝鍥犱負(fù)JDK5瀵筊MI榪涜浜?jiǎn)浼樺?br />鎺ヤ笅鏉ョ湅鐪嬬敤spring瀵廣?a >JavaRMI鍏ラ棬瀹炴垬銆嬩緥瀛愮殑綆鍖?br />1.瀹㈡埛绔殑閰嶇疆鍙?qiáng)浠g?br />PerfectTimeI鎺ュ彛錛堜笉鐢ㄧ戶鎵縥ava.rmi.Remote鎺ュ彛浜?jiǎn)锛屾櫘閫氱殑POJO錛?br />
package聽com.open.rmi.ex2;
publicinterface聽PerfectTimeI聽聽{
聽聽聽聽
long聽getPerfectTime();聽
}
DisplayPerfectTime綾?涔熸槸涓涓櫘閫氱殑綾?
package聽com.open.rmi.ex2;
publicclass聽DisplayPerfectTime聽{
聽聽聽聽
private聽PerfectTimeI聽pf;
聽聽聽聽
publicvoid聽display()聽{
聽聽聽聽聽聽聽聽
for聽(int聽i聽=0;聽i聽<10;聽i++)聽{
聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(
"PerfectTime:"+聽pf.getPerfectTime());
聽聽聽聽聽聽聽聽}

聽聽聽聽}

聽聽聽聽
//鐪佺暐浜?jiǎn)pf鐨刧et,set鏂規(guī)硶
}
瀹㈡埛绔厤緗産ean_client.xml
<beans>
聽聽聽聽
<!--瀹㈡埛绔?/span>-->
聽聽聽聽
<bean聽id="pf"聽class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
聽聽聽聽聽聽聽聽
<property聽name="serviceUrl"聽value="rmi://192.168.1.8:1099/perfect_time"/>
聽聽聽聽聽聽聽聽
<property聽name="serviceInterface"聽value="com.open.rmi.ex2.PerfectTimeI"/>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="test"聽class="com.open.rmi.ex2.DisplayPerfectTime">
聽聽聽聽聽聽聽聽
<property聽name="pf"聽ref="pf"/>
聽聽聽聽
</bean>
</beans>
2.鏈嶅姟绔殑閰嶇疆鍙?qiáng)浠g?br />PerfectTime綾?鐖藉惂錛岀畝綆鍗曞崟鐨凱OJO)
package聽com.open.rmi.ex2;
publicclass聽PerfectTime聽聽implements聽PerfectTimeI聽{
聽聽聽聽
publiclong聽getPerfectTime()聽{
聽聽聽聽聽聽聽聽
return聽System.currentTimeMillis();
聽聽聽聽}

}
閰嶇疆bean_server.xml
<beans>
聽聽聽聽
<!--鏈嶅姟绔?Spring璇誨彇瀹屽畾涔夋枃浠?鍦ㄧ敓鎴恠erviceExporter瀹炰緥鍚庯紝RMI鏈嶅姟灝變細(xì)鍚姩-->
聽聽聽聽
<bean聽id="serviceExporter"
聽聽聽聽聽聽聽聽
class="org.springframework.remoting.rmi.RmiServiceExporter">
聽聽聽聽聽聽聽聽
<property聽name="service"聽ref="pt"/>
聽聽聽聽聽聽聽聽
<property聽name="serviceName"聽value="perfect_time"/>
聽聽聽聽聽聽聽聽
<property聽name="serviceInterface"聽value="com.open.rmi.ex2.PerfectTimeI"/>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="pt"class="com.open.rmi.ex2.PerfectTime"/>
</beans>
3.嫻嬭瘯浠g爜
TestServer.java
package聽com.open.rmi.ex2;
import聽org.springframework.beans.factory.BeanFactory;
import聽org.springframework.context.support.ClassPathXmlApplicationContext;
publicclass聽TestServer聽{
聽聽聽聽
publicstaticvoid聽main(String[]聽args)聽{
聽聽聽聽聽聽聽聽BeanFactory聽bf
=new聽ClassPathXmlApplicationContext("bean_server.xml");
聽聽聽聽聽聽聽聽bf.getBean(
"serviceExporter");
聽聽聽聽}

}

TestClient.java
package聽com.open.rmi.ex2;

import聽org.springframework.beans.factory.BeanFactory;
import聽org.springframework.context.support.ClassPathXmlApplicationContext;

publicclass聽TestClient聽{
聽聽聽聽
publicstaticvoid聽main(String[]聽args)聽{
聽聽聽聽聽聽聽聽BeanFactory聽bf聽
=new聽ClassPathXmlApplicationContext("bean_client.xml");
聽聽聽聽聽聽聽聽DisplayPerfectTime聽test聽
=聽(DisplayPerfectTime)bf.getBean("test");
聽聽聽聽聽聽聽聽test.display();
聽聽聽聽}

}

鍏堣繍琛孴estServer錛岃緭鍑?br />
RmiServiceExporter聽-聽Could聽not聽detect聽RMI聽registry聽-聽creating聽new聽one
鍦ㄨ繍琛孴estClient灝卞彲浠ョ湅鍒扮粨鏋滀簡(jiǎn)
PerfectTime:1150125107468
PerfectTime:
1150125107484
PerfectTime:
1150125107484
鐪嬪埌娌★紝浣犳牴鏈笉鐢ㄨ繍琛宺mic -d G:\RMI test.PerfectTime錛宻tart rmiregistry 銆?br />榪欏氨鏄痵pring鐨勯瓍鍔涘晩


~灝廞 2006-06-12 23:15 鍙戣〃璇勮
]]>
spring涓簨鍔$殑灞炴?/title><link>http://www.tkk7.com/xfan/archive/2006/06/11/52064.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Sun, 11 Jun 2006 14:50:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/11/52064.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/52064.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/11/52064.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/52064.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/52064.html</trackback:ping><description><![CDATA[1.浼犳挱琛屼負(fù)<br />瀹氫箟浜?jiǎn)鍏充簬瀹㈡堬L(fēng)鍜岃璋冪敤鏂規(guī)硶鐨勪簨鍔¤竟鐣屻備紶鎾鍒欏氨鏄湪璇存槑鏂扮殑浜嬪姟鏄惁瑕佽鍚姩鎴栨槸鎸傝搗錛屾垨鑰呮柟娉曟槸鍚﹁鍦ㄤ簨鍔$幆澧冧腑榪愯銆?br />spring瀹氫箟浜?縐嶄笉鍚岀殑浼犳挱琛屼負(fù)銆?br />1)PROPAGATION_MANDATORY<br />聽聽 琛ㄦ槑鏂規(guī)硶蹇呴』瑕佸湪浜嬪姟涓繍琛屻傚鏋滀簨鍔′笉瀛樺湪錛屾姏鍑哄紓甯?br />2)PROPAGATION_NESTED<br />聽聽 琛ㄧず濡傛灉褰撳墠宸茬粡瀛樺湪涓涓簨鍔★紝鍒欒鏂規(guī)硶搴斿綋榪愯鍦ㄤ竴涓祵濂楃殑浜嬪姟涓傝宓屽鐨勪簨鍔″彲浠ヤ粠褰撳墠浜嬪姟涓崟鐙湴鎻愪氦鎴栧洖婊氥傚鏋滃綋鍓嶄簨鍔′笉瀛樺湪錛屽氨鐩稿綋浜嶱ROPAGATION_REQUIRED<br />3)PROPAGATION_NEVER<br />聽 琛ㄧず褰撳墠鐨勬柟娉曚笉搴旇榪愯鍦ㄤ竴涓簨鍔′笂涓嬫枃涓傚鏋滃綋鍓嶅瓨鍦ㄤ竴涓簨鍔★紝鍒欎細(xì)鎶涘嚭涓涓紓甯搞?br />4)PROPAGATION_NOT_SUPPORTED<br />琛ㄧず璇ユ柟娉曚笉搴旇鍦ㄤ簨鍔′腑榪愯銆傚鏋滀竴涓幇鏈夌殑浜嬪姟姝e湪榪愯涓傚畠?yōu)畣鍦ㄨ鏂规硶鐨剺q愯鏈熼棿琚寕璧?br />5)PROPAGATION_REQUIRED<br />琛ㄧず褰撳墠鏂規(guī)硶蹇呴』榪愯鍦ㄤ竴涓簨鍔′腑銆傚鏋滀竴涓幇鏈夌殑浜嬪姟姝e湪榪愯涓紝璇ユ柟娉曞皢榪愯鍦ㄨ繖涓簨鍔′腑銆傚惁鍒欑殑璇濓紝灝辮寮濮嬩竴涓柊鐨勪簨鍔°?br />6)PROPAGATION_REQUIRES_NEW<br />琛ㄧず褰撳墠鏂規(guī)硶蹇呴』榪愯鍦ㄥ畠鑷繁鐨勪簨鍔′腑銆傚鏋滀竴涓幇鏈変簨鍔″湪榪愯鐨勮瘽錛屽皢鍦ㄨ繖涓柟娉曡繍琛屾湡闂磋鎸傝搗銆?br />7)PROPAGATION_SUPPORTS<br />琛ㄧず褰撳墠鏂規(guī)硶涓嶉渶瑕佷簨鍔″鐞嗙幆澧冿紝浣嗗鏋滄湁涓涓簨鍔″凡緇忓湪榪愯鐨勮瘽錛岃繖涓柟娉曚篃鍙互鍦ㄨ繖涓簨鍔′腑榪愯<br />2.闅旂綰у埆<br />澶氫釜浜嬪姟騫跺彂榪愯鐨勫叧緋匯傚洜涓哄茍鍙戜細(xì)瀵艱嚧浠ヤ笅闂<br />.鑴忚(Dirty read) 涓涓簨鍔¤鍙栦簡(jiǎn)琚彟涓涓簨鍔℃敼鍐欎絾榪樻病鎻愪氦鐨勬暟鎹?br />.涓嶅彲閲嶅璇?Nonrepeatable read) 涓涓簨鍔℃墽琛岀浉鍚岀殑鏌ヨ涓ゆ鎴栦袱嬈′互涓婏紝浣嗘瘡嬈℃煡璇㈢粨鏋滈兘涓嶅悓鏃躲傝繖鐢變簬鍙︿竴涓茍鍙戜簨鍔″湪涓ゆ鏌ヨ涔嬮棿鏇存柊浜?jiǎn)鏁版?br />.騫昏(Phantom read)<br />褰撲竴涓簨鍔¤鍙栧嚑琛岃褰曞悗錛屽彟涓涓茍鍙戜簨鍔℃彃鍏ヤ竴浜涜褰曪紝灝卞彂鐢熶簡(jiǎn)騫昏<br />spring瀹氫箟浜?jiǎn)浠ヤ?縐嶉殧紱誨叧緋?br />1)ISOLATION_DEFAULT<br />浣跨敤鍚庣鏁版嵁搴撻粯璁ゅ緱闅旂綰у埆<br />2)ISOLATION_READ_UNCOMMITTED<br />鍏佽浣犺鍙栬繕鏈彁浜ょ殑鏀瑰彉浜?jiǎn)鐨勬暟鎹傚彲鑳藉鑷磋剰璇伙紝涓嶅彲閲嶅璇伙紝騫昏<br />3)ISOLATION_READ_COMMITTTED<br />榪愯鍦ㄥ茍鍙戜簨鍔″凡緇忔彁浠峰悗璇誨彇銆傚彲闃叉鑴忚錛屼絾涓嶅彲閲嶅璇伙紝騫昏閮芥湁鍙兘鍙戠敓<br />4)ISOLATION_REPEATABLE_READ<br />瀵圭浉鍚屽瓧孌電殑澶氭璇誨彇緇撴灉鏄竴鑷寸殑錛岄櫎闈炴暟鎹浜嬪姟鏈韓銆傚彲闃叉鑴忚錛屼笉鍙噸澶嶈錛屼絾騫昏浠嶅彲鑳藉彂鐢熴?br />5)ISOLATION_SERIALIZABLE<br />瀹屽叏鏈嶄粠ACID鐨勯殧紱葷駭鍒紝紜繚涓嶅彂鐢熻剰璇伙紝涓嶅彲閲嶅璇伙紝騫昏銆傚畠鐨勫吀鍨嬪仛娉曞氨鏄畬鍏ㄩ攣瀹氬湪浜嬪姟涓秹鍙?qiáng)鐨勬暟鎹〃銆傚洜姝ゅ畠鏄渶鎱㈠湴銆?br />3.鍙鎻愮ず<br />閫氳繃鍙灞炴э紝鏁版嵁搴撳彲浠ュ浜嬪姟榪涜浼樺寲銆?br />4.浜嬪姟瓚呮椂鏃墮棿<br />璁劇疆浜?jiǎn)鐨勮瘽锛屼簨鍔″湪瓒厴q囪繖涓椂闂村悗灝辮嚜鍔ㄥ洖婊氥傞伩鍏嶅崰鐢ㄨ祫婧愯繃涔呫?img src ="http://www.tkk7.com/xfan/aggbug/52064.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-11 22:50 <a href="http://www.tkk7.com/xfan/archive/2006/06/11/52064.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浜嬪姟鐨勭壒鐐逛互鍙?qiáng)spring鎻愪緵浜嬪姟綆$悊鍣ㄧ殑綆浠?/title><link>http://www.tkk7.com/xfan/archive/2006/06/10/51839.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Sat, 10 Jun 2006 06:02:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/10/51839.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/51839.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/10/51839.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/51839.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/51839.html</trackback:ping><description><![CDATA[浜嬪姟鐨勭壒鐐?ACID)<br />1)鍘熷瓙鎬?Atomic)<br />浜嬪姟鐢變竴涓垨澶氫釜琛屼負(fù)緇戝湪涓璧風(fēng)粍鎴愮殑錛屽ソ鍍忎竴涓崟鐙殑宸ヤ綔鍗曞厓銆備簨鍔′腑鐨勬搷浣滆涔堥兘鍙戠敓錛岃涔堥兘涓嶅彂鐢熴?br />2)涓鑷存?Consistent)涓鏃︿竴涓簨鍔$粨鏉熶簡(jiǎn)(涓嶇鎴愬姛涓庡惁)錛岀郴緇熸墍澶勭殑鐘舵佸拰瀹冪殑涓氬姟瑙勫垯鏄竴鑷寸殑銆?br />3)闅旂鎬?Isolated)浜嬪姟搴旇鍏佽澶氫釜鐢ㄦ埛鎿嶄綔鍚屼竴涓暟鎹紝涓涓敤鎴風(fēng)殑鎿嶄綔涓嶄細(xì)鍜屽叾浠栫敤鎴風(fēng)殑鎿嶄綔鐩告販嫻娿?br />4)鎸佷箙鎬?Durable)涓鏃︿簨鍔″畬鎴愶紝浜嬪姟鐨勭粨鏋滃簲璇ユ寔涔呭寲銆?br /><br />spring鎻愪緵浜?jiǎn)浠ヤ笅浜嬪姟绠$悊鍣?br />1)DataSourceTransactionManager聽聽聽聽聽聽鍦ㄥ崟涓鐨凧DBC DataSource涓鐞嗕簨鍔?br />2)HibernateTransactionManager 褰撴寔涔呭寲鏈哄埗鏄疕ibernate鏃訛紝鐢ㄥ畠鏉ョ鐞嗕簨鍔?br />3)JdoTransactionManager 褰撴寔涔呭寲鏈哄埗鏃禞DO鏃訛紝鐢ㄥ畠鏉ョ鐞嗕簨鍔?br />4)JtaTransactionManager浣跨敤涓涓狫TA瀹炶鏉ョ鐞嗕簨鍔°傚綋涓涓簨鍔¤法瓚婂涓祫婧愭椂聽聽聽聽 蹇呴』浣跨敤<br />5)PersistenceBrokerTransactionManager褰揂pache鐨凮JB鐢ㄤ綔鎸佷箙鍖栨椂錛岀敤瀹冩潵綆$悊浜嬪姟<br />6)TopLinkTransactionManager褰搊racle鐨凾opLink鐢ㄤ綔鎸佷箙鍖栨椂錛岀敤瀹冩潵綆$悊浜嬪姟<br />7)JmsTransactionManager鐢ㄥ畠鏉ョ鐞咼MS鐨勪簨鍔?br /><br /><img src ="http://www.tkk7.com/xfan/aggbug/51839.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-10 14:02 <a href="http://www.tkk7.com/xfan/archive/2006/06/10/51839.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ProxyFactoryBean灞炴т粙緇?/title><link>http://www.tkk7.com/xfan/archive/2006/06/10/51794.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Sat, 10 Jun 2006 03:15:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/10/51794.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/51794.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/10/51794.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/51794.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/51794.html</trackback:ping><description><![CDATA[浠婂ぉ鍦ㄧ湅spring in action 鐨凙OP,灝辨妸瀹冩妱褰曚笅鏉?br />target:浠g悊鐨勭洰鏍囩被<br />proxyInterfaces:浠g悊綾誨簲璇ュ疄鐜扮殑鎺ュ彛鍒楄〃<br />interceptorNames:闇瑕佸簲鐢ㄥ埌鐩爣瀵硅薄涓婄殑閫氱煡Bean鐨勫悕瀛?鍙互鏄嫤鎴櫒,advisor鍜屽叾浠栭氱煡綾誨瀷鐨勫悕瀛椼傝繖涓睘鎬у繀欏繪寜鐓у湪BeanFactory涓殑欏哄簭璁劇疆<br />singleton:<br />aopProxyFactory:浣跨敤鐨凱roxyFactoryBean瀹炵幇銆係pring甯︽湁涓ょ瀹炵幇(JDK鍔ㄦ佷唬鐞嗗拰CGLIB)銆傞氬父涓嶉渶瑕佷嬌鐢ㄨ繖涓睘鎬?br />exposeProxy:鐩爣瀵硅薄鏄惁闇瑕佸緱鍒板綋鍓嶇殑浠g悊銆傞氳繃璋冪敤AopContext.getCurrentProxy瀹炵幇銆?br />frozen:涓鏃﹀伐鍘傝鍒涘緩錛屾槸鍚﹀彲浠ヤ慨鏀逛唬鐞嗙殑閫氱煡銆傚綋璁劇疆涓簍rue鏃訛紝鍦ㄨ繍琛屾椂灝變笉鑳戒慨鏀筆roxyFactoryBean浜?jiǎn)銆傞氬父涓嶉渶瑕佷嬌鐢ㄨ繖涓睘鎬с?br />optimize錛氭槸鍚﹀鍒涘緩鐨勪唬鐞嗚繘琛屼紭鍖?鍙傜敤浜嶤GLIB)<br />ProxyTargetClass錛氭槸鍚︿唬鐞嗙洰鏍囩被錛岃屼笉鏄疄鐜版帴鍙c傚彧鑳藉湪浣跨敤CGLIB鏃朵嬌鐢?br /><br /><img src ="http://www.tkk7.com/xfan/aggbug/51794.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-10 11:15 <a href="http://www.tkk7.com/xfan/archive/2006/06/10/51794.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>spring涓熀紜鏍稿績(jī)鎺ュ彛浠嬬粛http://www.tkk7.com/xfan/archive/2006/06/09/51654.html~灝廞~灝廞Fri, 09 Jun 2006 03:56:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/09/51654.htmlhttp://www.tkk7.com/xfan/comments/51654.htmlhttp://www.tkk7.com/xfan/archive/2006/06/09/51654.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/51654.htmlhttp://www.tkk7.com/xfan/services/trackbacks/51654.htmlspring涓熀紜鏍稿績(jī)鎺ュ彛鎬葷粨
鐞嗚В榪欏嚑涓帴鍙o紝鍙?qiáng)鍏跺疄鐜熬c誨氨鍙互蹇熶簡(jiǎn)瑙pring,鍏蜂綋鐨勭敤娉曞弬鑰冨叾浠杝pring璧勬枡

1.BeanFactory鏈鍩虹鏈鏍稿績(jī)鐨勬帴鍙?br />閲嶈鐨勫疄鐜扮被鏈夛細(xì)
XmlBeanFactory,浠ュ強(qiáng)ApplicationContext鎺ュ彛涓嬬殑綾?/p>

2.Resource鎺ュ彛,鍙互閫氱敤鍦拌闂枃浠惰祫婧?br />1)ClassPathResource:璇誨彇寰楀艦寮忎負(fù)"classpath:ApplicationContext.xml"
2)FileStstemResource:璇誨彇寰楀艦寮忎負(fù)"file:c:\spring\src\ApplicationContext.xml"
3)ServletContextResource:璇誨彇寰楀艦寮忎負(fù)"WEB-INF\ApplicationContext.xml"
//ResourceLoader綾葷敤浜庤澆鍏esource

3.FactoryBean宸ュ巶bean
瀹冩湰韜湪bean factory涓畾涔夛紝鍚屾椂鍙堟槸鐢ㄤ簬鍒涘緩鐩爣bean鐨勫伐鍘?br />spring鏈変互涓嬪疄鐜?
1)JndiObjectFactoryBean:閫氳繃JNDI鏌ユ壘鑾峰彇瀵硅薄
2)LocalSessionFactoryBean:鐢ㄤ簬鍦ㄦ湰鍦拌閰岺ibernate SessionFactory
3)LocalSessionFactoryBean:鐢ㄤ簬鍦ㄦ湰鍦拌閰岼DO PersistenceManagerFactory
4)ProxyFactoryBean:鐢ㄤ簬鑾峰彇AOP鐨勪唬鐞?br />5)TransactionProxyFactoryBean:鐢ㄤ簬涓哄璞″垱寤轟簨鍔′唬鐞嗭紝鐢ㄤ簬瀹炵幇綆鎹鋒槗鐢ㄧ殑澹版槑鎬т簨鍔′唬鐞?br />6)RmiProxyFactoryBean:涓洪氳繃RMI璁塊棶鐨勮繙紼嬪璞″垱寤轟竴涓唬鐞?/p>

4.ApplicationContext鍔犲己浜?jiǎn)BeanFactory鐨勫姛鑳斤紝鏀寔浠ヤ笅鍔熻兘
1)鍥介檯鍖栨敮鎸?br />2)璧勬簮璁塊棶
3)浜嬩歡鐩戝惉鏈哄埗
瀹冪殑閲嶈鐨勫疄鐜扮被鏈夛細(xì)
FileSystemXmlApplicationContext,ClassPathXmlApplication,XmlWebApplicationContext

5.Bean鐢熷懡鍛ㄦ湡鐨勫洖璋冩帴鍙?br />BeanFactoryPostProcessor,InitializingBean,DisposableBean,BeanFactoryAware,ApplicationContextAware,ResourceLoader,BeanPostProcessor

6.MessageSource鎺ュ彛
瀹冪殑瀹炵幇綾繪湁ResourceBundleMessageSource,ReloadableResourceBundleMessageSource.鍚庤呭湪灞炴ф枃浠朵慨鏀瑰悗浼?xì)閲嶆柊铦插?/p>

鏆傛椂浠嬬粛榪欏嚑涓?/p>

~灝廞 2006-06-09 11:56 鍙戣〃璇勮
]]>
鏈綆鍗曠殑鍔ㄦ佷唬鐞嗗疄渚?spring鍩轟簬鎺ュ彛浠g悊鐨凙OP鍘熺悊)http://www.tkk7.com/xfan/archive/2006/06/09/51628.html~灝廞~灝廞Fri, 09 Jun 2006 02:20:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/09/51628.htmlhttp://www.tkk7.com/xfan/comments/51628.htmlhttp://www.tkk7.com/xfan/archive/2006/06/09/51628.html#Feedback1http://www.tkk7.com/xfan/comments/commentRss/51628.htmlhttp://www.tkk7.com/xfan/services/trackbacks/51628.htmlJDK鐨勫姩鎬佷唬鐞嗘槸鍩轟簬鎺ュ彛鐨?br />

package 聽com.open.aop;
public interface 聽BusinessInterface聽 {
聽聽聽聽
public void 聽processBusiness();
}
鐩爣瀵硅薄
package聽com.open.aop;
publicclass聽BusinessObject聽implements聽BusinessInterface聽{
聽聽聽聽
publicvoid聽processBusiness()聽{
聽聽聽聽聽聽聽聽System.out.println(
"action");
聽聽聽聽}

}

浠g悊瀵硅薄
package聽com.open.aop;
import聽java.lang.reflect.InvocationHandler;
import聽java.lang.reflect.Method;
import聽java.lang.reflect.Proxy;
publicclass聽LogHandler聽implements聽I(yíng)nvocationHandler聽{
聽聽聽聽
private聽Object聽delegate;
聽聽聽聽
public聽Object聽binder(Object聽delegate)聽{
聽聽聽聽聽聽聽聽
this.delegate=delegate;
聽聽聽聽聽聽聽聽
return聽Proxy.newProxyInstance(delegate.getClass().getClassLoader(),
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽delegate.getClass().getInterfaces(),
this);
聽聽聽聽}

聽聽聽聽
public聽Object聽invoke(Object聽proxy,聽Method聽method,聽Object[]聽args)
聽聽聽聽聽聽聽聽聽聽聽聽
throws聽Throwable聽{
聽聽聽聽聽聽聽聽Object聽obj聽
=null;
聽聽聽聽聽聽聽聽System.out.println(
"瀵硅薄鏂規(guī)硶璋冪敤鍓?/span>");
聽聽聽聽聽聽聽聽
try{
聽聽聽聽聽聽聽聽聽聽聽聽obj聽
=聽method.invoke(delegate,聽args);
聽聽聽聽聽聽聽聽}
catch聽(Exception聽e)聽{
聽聽聽聽聽聽聽聽}

聽聽聽聽聽聽聽聽System.out.println(
"瀵硅薄鏂規(guī)硶璋冪敤鍚?/span>");聽
聽聽聽聽聽聽聽聽
return聽obj;
聽聽聽聽}

}
嫻嬭瘯綾?
package聽com.open.aop;
import聽java.lang.reflect.InvocationHandler;
import聽java.lang.reflect.Proxy;
publicclass聽Test聽{
聽聽聽聽
publicstaticvoid聽main(String[]聽args)聽{
聽聽聽聽聽聽聽聽BusinessInterface聽bi聽
=聽(BusinessInterface)聽new聽LogHandler()
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.binder(
new聽BusinessObject());
聽聽聽聽聽聽聽聽bi.processBusiness();
聽聽聽聽}

}
杈撳嚭緇撴灉
瀵硅薄鏂規(guī)硶璋冪敤鍓?br />action
瀵硅薄鏂規(guī)硶璋冪敤鍚?/span>


~灝廞 2006-06-09 10:20 鍙戣〃璇勮
]]>
spring澶嶆潅灞炴х殑閰嶇疆http://www.tkk7.com/xfan/archive/2006/06/08/51303.html~灝廞~灝廞Thu, 08 Jun 2006 04:48:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/08/51303.htmlhttp://www.tkk7.com/xfan/comments/51303.htmlhttp://www.tkk7.com/xfan/archive/2006/06/08/51303.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/51303.htmlhttp://www.tkk7.com/xfan/services/trackbacks/51303.html package 聽com.open.bean;
import 聽java.util.List;
import 聽java.util.Map;
import 聽java.util.Properties;
public class 聽BeanSet聽 {
聽聽聽聽
private 聽String[]聽str1;
聽聽聽聽
private 聽String[]聽str2;
聽聽聽聽
private 聽List聽lst;
聽聽聽聽
private 聽Map聽map;
聽聽聽聽
private 聽Properties聽props;
聽聽聽聽
private 聽ChildBean[]聽child;
聽聽聽
// 鐪佺暐set,get鏂規(guī)硶
}

package 聽com.open.bean;
public class 聽ChildBean {}
閰嶇疆鏂囦歡
<beans>
<bean聽id="bs"聽class="com.open.bean.BeanSet">
聽聽聽聽聽聽聽聽
<property聽name="str1">
聽聽聽聽聽聽聽聽聽聽聽聽
<list>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<value>value1</value>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<value>value2</value>
聽聽聽聽聽聽聽聽聽聽聽聽
</list>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽聽聽聽聽
<property聽name="str2">
聽聽聽聽聽聽聽聽聽聽聽聽
<value>value3,value4</value>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽聽聽聽聽
<property聽name="lst">
聽聽聽聽聽聽聽聽聽聽聽聽
<list>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<value>value5</value>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<ref聽bean="cc1"/>
聽聽聽聽聽聽聽聽聽聽聽聽
</list>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽聽聽聽聽
<property聽name="map">
聽聽聽聽聽聽聽聽聽聽聽聽
<map>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<entry聽key="key1">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<value>xxx</value>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</entry>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<entry聽key="key2">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<ref聽bean="cc1"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</entry>
聽聽聽聽聽聽聽聽聽聽聽聽
</map>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽聽聽聽聽
<property聽name="props">
聽聽聽聽聽聽聽聽聽聽聽聽
<props>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<prop聽key="key1">xxx</prop>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<prop聽key="key2">yyy</prop>
聽聽聽聽聽聽聽聽聽聽聽聽
</props>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽聽聽聽聽
<property聽name="child">
聽聽聽聽聽聽聽聽聽聽聽聽
<list>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<ref聽bean="cc1"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<ref聽bean="cc2"/>
聽聽聽聽聽聽聽聽聽聽聽聽
</list>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="cc1"聽class="com.open.bean.ChildBean"/>
聽聽聽聽
<bean聽id="cc2"聽class="com.open.bean.ChildBean"/>
</beans>
嫻嬭瘯浠g爜
package聽com.open.bean;
import聽java.util.List;
import聽java.util.Map;
import聽java.util.Properties;
import聽org.springframework.context.support.ClassPathXmlApplicationContext;
publicclass聽Test1聽{
聽聽聽聽
publicstaticvoid聽main(String[]聽args)聽{
聽聽聽聽聽聽聽聽ClassPathXmlApplicationContext聽cx
=
聽聽聽聽聽聽聽聽聽聽聽聽
new聽ClassPathXmlApplicationContext("bean.xml");
聽聽聽聽聽聽聽聽BeanSet聽bs
=(BeanSet)cx.getBean("bs");
聽聽聽聽聽聽聽聽String[]聽str1
=bs.getStr1();
聽聽聽聽聽聽聽聽String[]聽str2
=bs.getStr1();
聽聽聽聽聽聽聽聽List聽lst
=bs.getLst();
聽聽聽聽聽聽聽聽Map聽map
=bs.getMap();
聽聽聽聽聽聽聽聽Properties聽props
=bs.getProps();
聽聽聽聽聽聽聽聽ChildBean[]聽cb
=bs.getChild();
聽聽聽聽聽聽聽聽System.out.println(
"str1="+"["+str1[0]+","+str1[1]+"]");
聽聽聽聽聽聽聽聽System.out.println(
"str2="+"["+str2[0]+","+str2[1]+"]");
聽聽聽聽聽聽聽聽System.out.println(
"lst="+lst);
聽聽聽聽聽聽聽聽System.out.println(
"map="+map);
聽聽聽聽聽聽聽聽System.out.println(
"props="+props);
聽聽聽聽聽聽聽聽System.out.println(
"cb="+"["+cb[0]+","+cb[1]+"]");
聽聽聽聽}

}
杈撳嚭緇撴灉
str1=[value1,value2]
str2
=[value1,value2]
lst
=[value5,聽com.open.bean.ChildBean@1df073d]
map
={key1=xxx,聽key2=com.open.bean.ChildBean@1df073d}
props
={key2=yyy,聽key1=xxx}
cb
=[com.open.bean.ChildBean@1df073d,com.open.bean.ChildBean@1546e25]


~灝廞 2006-06-08 12:48 鍙戣〃璇勮
]]>
Spring鍔犺澆澶氫釜閰嶇疆鏂囦歡http://www.tkk7.com/xfan/archive/2006/06/07/51061.html~灝廞~灝廞Wed, 07 Jun 2006 03:13:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/07/51061.htmlhttp://www.tkk7.com/xfan/comments/51061.htmlhttp://www.tkk7.com/xfan/archive/2006/06/07/51061.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/51061.htmlhttp://www.tkk7.com/xfan/services/trackbacks/51061.html
ApplicationContext聽act=new聽ClassPathXmlApplicationContext(new聽String[]聽{"bean1.xml","bean2.xml"});
聽聽聽聽
瀵逛簬BeanFactory
BeanDefinitionRegistry聽reg聽=new聽DefaultListableBeanFactory();
XmlBeanDefinitionReader聽reader聽
=new聽XmlBeanDefinitionReader(reg);
reader.loadBeanDefinitions(
new聽ClassPathResource("bean1.xml"));
reader.loadBeanDefinitions(
new聽ClassPathResource("bean2.xml"));
BeanFactory聽bf
=(BeanFactory)reg;



~灝廞 2006-06-07 11:13 鍙戣〃璇勮
]]>
spring濡備綍寮曠敤properties鏂囦歡閲岀殑閰嶇疆http://www.tkk7.com/xfan/archive/2006/06/07/51006.html~灝廞~灝廞Tue, 06 Jun 2006 18:40:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/07/51006.htmlhttp://www.tkk7.com/xfan/comments/51006.htmlhttp://www.tkk7.com/xfan/archive/2006/06/07/51006.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/51006.htmlhttp://www.tkk7.com/xfan/services/trackbacks/51006.html瀹冩槸鎶婂睘鎬т腑鐨勫畾涔夌殑鍙橀噺(var)鏇夸唬,spring鐨勯厤緗枃浠朵腑浣跨敤${var}鐨勫崰浣嶇
<beans>
<bean聽id="configBean"聽class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
聽聽聽聽聽聽聽聽聽聽
<property聽name="location"><value>db.properties</value></property>
</bean>
<bean聽id="dataSource"聽class="org.apache.commons.dbcp.BasicDataSource"聽destroy-method="close">
聽聽聽聽
<property聽name="driverClassName"><value>${jdbc.driverClassName}</value></property>
聽聽聽聽
<property聽name="url"><value>${jdbc.url}</value></property>
聽聽聽聽
<property聽name="username"><value>${jdbc.username}</value></property>
聽聽聽聽
<property聽name="password"><value>${jdbc.password}</value></property>
</bean>
</beans>
db.properties鏂囦歡
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:hsql://production:9002
jdbc.username=sa
jdbc.password=root
2.PropertyOverrideConfigurer綾?br />璺烶ropertyPlaceholderConfigurer鍔熻兘涓鏍鳳紝涓嶈繃鐢ㄦ硶涓嶄竴鏍?涓嶇敤鍗犱綅絎︼紝鍦ㄥ睘鎬ф枃浠朵腑
鐩存帴瀹氫箟灞炴х殑鍊鹼紝榪欐牱灝卞厑璁告湁榛樿鍊?br />
<beans>
<bean聽id="configBean"聽class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
聽聽聽聽聽聽聽聽聽聽聽
<property聽name="location"><value>db.properties</value></property>
</bean>
<bean聽id="dataSource"聽class="org.apache.commons.dbcp.BasicDataSource"聽destroy-method="close">
聽聽聽聽
<property聽name="driverClassName"><value>org.hsqldb.jdbcDriver</value></property>
聽聽聽聽
<property聽name="url"><value>jdbc:hsqldb:hsql://production:9002</value></property>
聽聽聽聽
<property聽name="username"><value>test</value></property>
聽聽聽聽
<property聽name="password"><value>123456</value></property>
</bean>
</beans>
db.properties鏂囦歡
dataSource.username=admin
dataSource.password=9527
鍦╞ean瀹炰緥鏃訛紝admin,9527灝嗘浛浠est,123456
3鍏朵粬
1)濡傛灉闇瑕佸紩鐢ㄥ涓睘鎬э紝灝?font color="#0000ff">configBean
灞炴ф敼涓?br />
<property聽name="locations">
<list>
<value>db.properties</value>
<value>db1.properties</value>
</list>
</property>
2)鍦ˋpplactionContext涓槸鑷姩璋冪敤BeanFactoryPostProcessor鎺ュ彛鐨勶紝濡傛灉瑕佸湪BeanFactory涓嬌鐢紝蹇呴』鎵嬪姩娣誨姞:
XmlBeanFactory聽factory聽=new聽XmlBeanFactory(new聽FileSystemResource("beans.xml"));
PropertyPlaceholderConfigurer聽cfg聽
=new聽PropertyPlaceholderConfigurer();
cfg.setLocation(
new聽FileSystemResource("jdbc.properties"));
cfg.postProcessBeanFactory(factory);


~灝廞 2006-06-07 02:40 鍙戣〃璇勮
]]>spring涓嚜瀹氫箟灞炴х紪杈戝櫒http://www.tkk7.com/xfan/archive/2006/06/06/50920.html~灝廞~灝廞Tue, 06 Jun 2006 13:48:00 GMThttp://www.tkk7.com/xfan/archive/2006/06/06/50920.htmlhttp://www.tkk7.com/xfan/comments/50920.htmlhttp://www.tkk7.com/xfan/archive/2006/06/06/50920.html#Feedback0http://www.tkk7.com/xfan/comments/commentRss/50920.htmlhttp://www.tkk7.com/xfan/services/trackbacks/50920.html渚嬪瓙:
Person綾?br />
package聽com.open.bean;
publicclass聽Person聽{
聽聽聽聽PhoneNumber聽phoneNumber;
聽聽聽聽
//set,get鏂規(guī)硶鐪佺暐
}
PhoneNumber綾?br />
package聽com.open.bean;
publicclass聽PhoneNumber聽{
聽聽聽聽
private聽String聽areaCode;
聽聽聽聽
private聽String聽number;
聽聽聽聽
public聽PhoneNumber(String聽areaCode,String聽number聽)聽{
聽聽聽聽聽聽聽聽
this.areaCode=areaCode;
聽聽聽聽聽聽聽聽
this.number=number;
聽聽聽聽}

聽聽聽聽
//set,get鏂規(guī)硶鐪佺暐
}
鑷畾涔夊睘鎬у櫒PhoneEditor
package聽com.open.bean;
import聽java.beans.PropertyEditorSupport;
publicclass聽PhoneEditor聽extends聽PropertyEditorSupport聽{
聽聽聽聽
publicvoid聽setAsText(String聽textValue)聽throws聽I(yíng)llegalArgumentException聽{
聽聽聽聽聽聽聽聽String聽[]str
=textValue.split("-");
聽聽聽聽聽聽聽聽
if(str!=null&&str.length==2)聽{
聽聽聽聽聽聽聽聽聽聽聽聽PhoneNumber聽pn
=new聽PhoneNumber(str[0],str[1]);
聽聽聽聽聽聽聽聽聽聽聽聽setValue(pn);
聽聽聽聽聽聽聽聽}
else{
聽聽聽聽聽聽聽聽聽聽聽聽setValue(
new聽PhoneNumber("0000","0000000"));
聽聽聽聽聽聽聽聽}
聽聽聽聽
聽聽聽聽}

}

鍒╃敤PhoneEdior錛屽湪xml鏂囦歡涓氨鍙互榪欎箞閰嶇疆Person綾諱簡(jiǎn)
<beans><!--娉ㄥ唽緙栬緫鍣?/span>-->
聽聽聽聽
<bean聽id="customEditorConfigurer"
聽聽聽聽聽聽聽聽class
="org.springframework.beans.factory.config.CustomEditorConfigurer">
聽聽聽聽聽聽聽聽
<property聽name="customEditors">
聽聽聽聽聽聽聽聽聽聽聽聽
<map>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<entry聽key="com.open.bean.PhoneNumber">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<bean聽id="phoneEditor"聽class="com.open.bean.PhoneEditor"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</entry>
聽聽聽聽聽聽聽聽聽聽聽聽
</map>
聽聽聽聽聽聽聽聽
</property>
聽聽聽聽
</bean>
聽聽聽聽
<bean聽id="person"聽class="com.open.bean.Person">
聽聽聽聽聽聽聽聽
<property聽name="phoneNumber"聽value="0731-8888888"/>
聽聽聽聽
</bean>
</beans>

spring榛樿鎻愪緵浠ヤ笅灞炴х紪杈戝櫒錛屼笉鐢ㄦ敞鍐?br />ClassEditor聽 浣跨敤鍖呭惈鍏ㄧО鍚嶇殑瀛楃涓茶緗甹ava.lang.Class灞炴?br />CustomDateEditor聽 浣跨敤鏌愮java.text.DateFormat瀵硅薄灝嗕竴涓瓧絎︿覆璁劇疆緇檍ava.util.Date灞炴?br />FileEditor聽 浣跨敤鍖呭惈鏂囦歡璺緞鐨勫瓧絎︿覆璁劇疆java.io.File灞炴?br />LocalEditor聽 璁劇疆java.util.Local灞炴?br />StringArrayPropertyEditor聽 灝嗕竴涓寘鍚楀彿鐨凷tring杞寲鎴怱tring鏁扮粍
StringTrimmerEditor聽 鑷姩淇瀛楃涓插睘鎬э紝鍙互閫夋嫨灝嗙┖瀛楃杞彉鎴恘ull

~灝廞 2006-06-06 21:48 鍙戣〃璇勮
]]>
spring涓瑽ean鐨勭敓鍛藉懆鏈?/title><link>http://www.tkk7.com/xfan/archive/2006/06/06/50883.html</link><dc:creator>~灝廞</dc:creator><author>~灝廞</author><pubDate>Tue, 06 Jun 2006 11:56:00 GMT</pubDate><guid>http://www.tkk7.com/xfan/archive/2006/06/06/50883.html</guid><wfw:comment>http://www.tkk7.com/xfan/comments/50883.html</wfw:comment><comments>http://www.tkk7.com/xfan/archive/2006/06/06/50883.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/xfan/comments/commentRss/50883.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/xfan/services/trackbacks/50883.html</trackback:ping><description><![CDATA[鍏堣創(chuàng)浠g爜錛?br />Life綾? <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽com.open.bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.BeansException;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.BeanFactory;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.BeanFactoryAware;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.BeanNameAware;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.DisposableBean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.InitializingBean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽Life聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽BeanFactoryAware,聽BeanNameAware,<br /><img id="Codehighlighter1_454_1447_Open_Image" onclick="this.style.display='none'; Codehighlighter1_454_1447_Open_Text.style.display='none'; Codehighlighter1_454_1447_Closed_Image.style.display='inline'; Codehighlighter1_454_1447_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_454_1447_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_454_1447_Closed_Text.style.display='none'; Codehighlighter1_454_1447_Open_Image.style.display='inline'; Codehighlighter1_454_1447_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />聽聽聽聽聽聽聽聽I(yíng)nitializingBean,聽DisposableBean聽</span><span id="Codehighlighter1_454_1447_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_454_1447_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">聽String聽msg;<br /><img id="Codehighlighter1_492_559_Open_Image" onclick="this.style.display='none'; Codehighlighter1_492_559_Open_Text.style.display='none'; Codehighlighter1_492_559_Closed_Image.style.display='inline'; Codehighlighter1_492_559_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_492_559_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_492_559_Closed_Text.style.display='none'; Codehighlighter1_492_559_Open_Image.style.display='inline'; Codehighlighter1_492_559_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Life()聽</span><span id="Codehighlighter1_492_559_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_492_559_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">msg=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">msg);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">鏋勯犲嚱鏁?/span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_636_679_Open_Image" onclick="this.style.display='none'; Codehighlighter1_636_679_Open_Text.style.display='none'; Codehighlighter1_636_679_Closed_Image.style.display='inline'; Codehighlighter1_636_679_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_636_679_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_636_679_Closed_Text.style.display='none'; Codehighlighter1_636_679_Open_Image.style.display='inline'; Codehighlighter1_636_679_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽setBeanFactory(BeanFactory聽beanFactory)聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_636_679_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_636_679_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">setBeanFactory</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_719_759_Open_Image" onclick="this.style.display='none'; Codehighlighter1_719_759_Open_Text.style.display='none'; Codehighlighter1_719_759_Closed_Image.style.display='inline'; Codehighlighter1_719_759_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_719_759_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_719_759_Closed_Text.style.display='none'; Codehighlighter1_719_759_Open_Image.style.display='inline'; Codehighlighter1_719_759_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽setBeanName(String聽name)聽</span><span id="Codehighlighter1_719_759_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_719_759_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">setBeanName</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_781_813_Open_Image" onclick="this.style.display='none'; Codehighlighter1_781_813_Open_Text.style.display='none'; Codehighlighter1_781_813_Closed_Image.style.display='inline'; Codehighlighter1_781_813_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_781_813_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_781_813_Closed_Text.style.display='none'; Codehighlighter1_781_813_Open_Image.style.display='inline'; Codehighlighter1_781_813_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽init()聽</span><span id="Codehighlighter1_781_813_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_781_813_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">鍒濆鍖?/span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Object聽postProcessBeforeInitialization(Object聽bean,聽String聽beanName)<br /><img id="Codehighlighter1_917_992_Open_Image" onclick="this.style.display='none'; Codehighlighter1_917_992_Open_Text.style.display='none'; Codehighlighter1_917_992_Closed_Image.style.display='inline'; Codehighlighter1_917_992_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_917_992_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_917_992_Closed_Text.style.display='none'; Codehighlighter1_917_992_Open_Image.style.display='inline'; Codehighlighter1_917_992_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_917_992_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_917_992_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">postProcessBeforeInitialization</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Object聽postProcessAfterInitialization(Object聽bean,聽String聽beanName)<br /><img id="Codehighlighter1_1095_1169_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1095_1169_Open_Text.style.display='none'; Codehighlighter1_1095_1169_Closed_Image.style.display='inline'; Codehighlighter1_1095_1169_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1095_1169_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1095_1169_Closed_Text.style.display='none'; Codehighlighter1_1095_1169_Open_Image.style.display='inline'; Codehighlighter1_1095_1169_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_1095_1169_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1095_1169_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">postProcessAfterInitialization</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_1222_1269_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1222_1269_Open_Text.style.display='none'; Codehighlighter1_1222_1269_Closed_Image.style.display='inline'; Codehighlighter1_1222_1269_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1222_1269_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1222_1269_Closed_Text.style.display='none'; Codehighlighter1_1222_1269_Open_Image.style.display='inline'; Codehighlighter1_1222_1269_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽afterPropertiesSet()聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽Exception聽</span><span id="Codehighlighter1_1222_1269_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1222_1269_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">afterPropertiesSet</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_1311_1347_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1311_1347_Open_Text.style.display='none'; Codehighlighter1_1311_1347_Closed_Image.style.display='inline'; Codehighlighter1_1311_1347_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1311_1347_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1311_1347_Closed_Text.style.display='none'; Codehighlighter1_1311_1347_Open_Image.style.display='inline'; Codehighlighter1_1311_1347_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽destroy()聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽Exception聽</span><span id="Codehighlighter1_1311_1347_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1311_1347_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">destroy</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_1373_1390_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1373_1390_Open_Text.style.display='none'; Codehighlighter1_1373_1390_Closed_Image.style.display='inline'; Codehighlighter1_1373_1390_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1373_1390_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1373_1390_Closed_Text.style.display='none'; Codehighlighter1_1373_1390_Open_Image.style.display='inline'; Codehighlighter1_1373_1390_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽String聽getMsg()聽</span><span id="Codehighlighter1_1373_1390_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1373_1390_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽msg;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_1424_1445_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1424_1445_Open_Text.style.display='none'; Codehighlighter1_1424_1445_Closed_Image.style.display='inline'; Codehighlighter1_1424_1445_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1424_1445_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1424_1445_Closed_Text.style.display='none'; Codehighlighter1_1424_1445_Open_Image.style.display='inline'; Codehighlighter1_1424_1445_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽setMsg(String聽msg)聽</span><span id="Codehighlighter1_1424_1445_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1424_1445_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000">.msg聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽msg;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>BeanPostProcessorImp綾? <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽com.open.bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.BeansException;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.config.BeanPostProcessor;<br /><img id="Codehighlighter1_202_560_Open_Image" onclick="this.style.display='none'; Codehighlighter1_202_560_Open_Text.style.display='none'; Codehighlighter1_202_560_Closed_Image.style.display='inline'; Codehighlighter1_202_560_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_202_560_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_202_560_Closed_Text.style.display='none'; Codehighlighter1_202_560_Open_Image.style.display='inline'; Codehighlighter1_202_560_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽BeanPostProcessorImp聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽BeanPostProcessor聽</span><span id="Codehighlighter1_202_560_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_202_560_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Object聽postProcessBeforeInitialization(Object聽bean,聽String聽beanName)<br /><img id="Codehighlighter1_306_381_Open_Image" onclick="this.style.display='none'; Codehighlighter1_306_381_Open_Text.style.display='none'; Codehighlighter1_306_381_Closed_Image.style.display='inline'; Codehighlighter1_306_381_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_306_381_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_306_381_Closed_Text.style.display='none'; Codehighlighter1_306_381_Open_Image.style.display='inline'; Codehighlighter1_306_381_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_306_381_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_306_381_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">postProcessBeforeInitialization</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽Object聽postProcessAfterInitialization(Object聽bean,聽String聽beanName)<br /><img id="Codehighlighter1_484_558_Open_Image" onclick="this.style.display='none'; Codehighlighter1_484_558_Open_Text.style.display='none'; Codehighlighter1_484_558_Closed_Image.style.display='inline'; Codehighlighter1_484_558_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_484_558_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_484_558_Closed_Text.style.display='none'; Codehighlighter1_484_558_Open_Image.style.display='inline'; Codehighlighter1_484_558_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_484_558_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_484_558_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">postProcessAfterInitialization</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>BeanCounter綾? <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽com.open.bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.BeansException;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.config.BeanFactoryPostProcessor;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.beans.factory.config.ConfigurableListableBeanFactory;<br /><img id="Codehighlighter1_288_470_Open_Image" onclick="this.style.display='none'; Codehighlighter1_288_470_Open_Text.style.display='none'; Codehighlighter1_288_470_Closed_Image.style.display='inline'; Codehighlighter1_288_470_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_288_470_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_288_470_Closed_Text.style.display='none'; Codehighlighter1_288_470_Open_Image.style.display='inline'; Codehighlighter1_288_470_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽BeanCounter聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽BeanFactoryPostProcessor聽</span><span id="Codehighlighter1_288_470_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_288_470_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽postProcessBeanFactory(<br /><img id="Codehighlighter1_397_468_Open_Image" onclick="this.style.display='none'; Codehighlighter1_397_468_Open_Text.style.display='none'; Codehighlighter1_397_468_Closed_Image.style.display='inline'; Codehighlighter1_397_468_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_397_468_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_397_468_Closed_Text.style.display='none'; Codehighlighter1_397_468_Open_Image.style.display='inline'; Codehighlighter1_397_468_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽ConfigurableListableBeanFactory聽beanFactory)聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽BeansException聽</span><span id="Codehighlighter1_397_468_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_397_468_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">綾葷殑鏁伴噺錛?/span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">beanFactory.getBeanDefinitionCount());<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>bean.xml <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000"><?</span><span style="COLOR: #000000">xml聽version</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">1.0</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽encoding</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">UTF-8</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">?></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #000000"><!</span><span style="COLOR: #000000">DOCTYPE聽beans聽PUBLIC聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">-//SPRING//DTD聽BEAN//EN</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">http://www.springframework.org/dtd/spring-beans.dtd</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">beans</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">bean聽id</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">life</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽name</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">life_name</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">com.open.bean.Life</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽<br />聽聽聽聽聽聽聽聽init</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">method</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">init</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">property聽name</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">msg</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽value</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">lifexxxx</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">bean</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽聽聽聽<br />聽聽聽聽</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">bean聽id</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">processor</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">com.open.bean.BeanPostProcessorImp</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">bean聽id</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">counter</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">com.open.bean.BeanCounter</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #000000"></</span><span style="COLOR: #000000">beans</span><span style="COLOR: #000000">></span></div>嫻嬭瘯綾? <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽com.open.bean;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽org.springframework.context.support.ClassPathXmlApplicationContext;<br /><img id="Codehighlighter1_116_295_Open_Image" onclick="this.style.display='none'; Codehighlighter1_116_295_Open_Text.style.display='none'; Codehighlighter1_116_295_Closed_Image.style.display='inline'; Codehighlighter1_116_295_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_116_295_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_116_295_Closed_Text.style.display='none'; Codehighlighter1_116_295_Open_Image.style.display='inline'; Codehighlighter1_116_295_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽Test聽</span><span id="Codehighlighter1_116_295_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_116_295_Open_Text"><span style="COLOR: #000000">{<br /><img id="Codehighlighter1_158_293_Open_Image" onclick="this.style.display='none'; Codehighlighter1_158_293_Open_Text.style.display='none'; Codehighlighter1_158_293_Closed_Image.style.display='inline'; Codehighlighter1_158_293_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_158_293_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_158_293_Closed_Text.style.display='none'; Codehighlighter1_158_293_Open_Image.style.display='inline'; Codehighlighter1_158_293_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽main(String[]聽args)聽</span><span id="Codehighlighter1_158_293_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_158_293_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽ClassPathXmlApplicationContext聽cx</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ClassPathXmlApplicationContext(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">bean.xml</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽Life聽life</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">(Life)cx.getBean(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">life</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);聽聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000">聽聽聽聽</span></div>杈撳嚭緇撴灉 <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">綾葷殑鏁伴噺錛?/span><span style="COLOR: #000000">3</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />msg</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鏋勯犲嚱鏁?br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />setBeanName<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />setBeanFactory<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />postProcessBeforeInitialization<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />afterPropertiesSet<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鍒濆鍖?br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />postProcessAfterInitialization</span></div>瑙i噴錛?br />璋冪敤BeanFactoryPostProcessor鎺ュ彛鐨刾ostProcessBeanFactory鏂規(guī)硶<br />-->瀹炰緥鍖?璋冪敤鏋勯犲嚱鏁?->璁劇疆灞炴у?br />-->璋冪敤BeanNameAware鐨剆etBeanName()鏂規(guī)硶<br />-->璋冪敤BeanFactoryAware鎺ュ彛鐨剆etBeanFactory<br />-->璋冪敤BeanPostProcessor鎺ュ彛鐨刾ostProcessBeforeInitialization()<br />-->璋冪敤InitializingBean鎺ュ彛鐨刟fterPropertiesSet()<br />-->璋冪敤bean.xml涓埗瀹氱殑init-method鎸囧畾init()鏂規(guī)硶<br />-->璋冪敤BeanPostProcessor鎺ュ彛鐨刾ostProcessAfterInitialization()<br />瀹瑰櫒鍏抽棴<br />-->DisposableBean鎺ュ彛鐨刣estroy()<br />-->璋冪敤bean.xml涓埗瀹氱殑destroy-method鎸囧畾鐨刧o()鏂規(guī)硶<br /><br /><br /><img src ="http://www.tkk7.com/xfan/aggbug/50883.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/xfan/" target="_blank">~灝廞</a> 2006-06-06 19:56 <a href="http://www.tkk7.com/xfan/archive/2006/06/06/50883.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://www44xixi.com" target="_blank">久久精品国产大片免费观看</a>| <a href="http://cnepu.com" target="_blank">亚洲AV无码国产精品色午友在线 </a>| <a href="http://xyxpx.com" target="_blank">中文字幕在线免费观看</a>| <a href="http://53ggk.com" target="_blank">久久久青草青青亚洲国产免观 </a>| <a href="http://yy9977.com" target="_blank">欧美在线看片A免费观看</a>| <a href="http://watchmini.com" target="_blank">亚洲卡一卡2卡三卡4麻豆</a>| <a href="http://wankufan.com" target="_blank">亚洲啪啪免费视频</a>| <a href="http://fenxue520.com" target="_blank">亚洲乱码一二三四区麻豆</a>| <a href="http://srztw.com" target="_blank">久久久久久久免费视频</a>| <a href="http://www-75044.com" target="_blank">亚洲AV成人无码天堂</a>| <a href="http://xmmn77.com" target="_blank">免费A级毛片无码免费视</a>| <a href="http://shnisda.com" target="_blank">国产亚洲中文日本不卡二区</a>| <a href="http://www-774220.com" target="_blank">97人伦色伦成人免费视频</a>| <a href="http://avqq222.com" target="_blank">亚洲国产成人久久综合</a>| <a href="http://52xingai.com" target="_blank">国产免费牲交视频</a>| <a href="http://www132126.com" target="_blank">免费一级特黄特色大片</a>| <a href="http://hhrrrr.com" target="_blank">亚洲综合区小说区激情区</a>| <a href="http://bovch.com" target="_blank">久久国产精品免费一区</a>| <a href="http://dzhankong.com" target="_blank">亚洲av无码专区在线播放 </a>| <a href="http://apguangyu.com" target="_blank">亚洲黄片手机免费观看</a>| <a href="http://zjtuntex.com" target="_blank">国产大片免费天天看</a>| <a href="http://aicbbs.com" target="_blank">亚洲精品午夜无码专区</a>| <a href="http://ipx588.com" target="_blank">免费91最新地址永久入口</a>| <a href="http://yiren2233.com" target="_blank">亚洲一区综合在线播放</a>| <a href="http://see13.com" target="_blank">男女做羞羞的事视频免费观看无遮挡</a>| <a href="http://siminglighting.com" target="_blank">亚洲专区中文字幕</a>| <a href="http://7272004.com" target="_blank">免费高清小黄站在线观看</a>| <a href="http://96j6.com" target="_blank">黄色免费网址在线观看</a>| <a href="http://www-84243.com" target="_blank">自拍偷自拍亚洲精品第1页</a>| <a href="http://huahui1866.com" target="_blank">野花香在线视频免费观看大全 </a>| <a href="http://fenxue520.com" target="_blank">成人免费看黄20分钟</a>| <a href="http://472849.com" target="_blank">在线观看亚洲免费视频</a>| <a href="http://ulihix.com" target="_blank">亚洲精品国产精品乱码不卡</a>| <a href="http://0359puju.com" target="_blank">中文字幕免费在线看线人动作大片</a>| <a href="http://chiguigu.com" target="_blank">久久精品国产亚洲香蕉</a>| <a href="http://mangshigas.com" target="_blank">曰批视频免费40分钟试看天天</a>| <a href="http://9156892.com" target="_blank">国产亚洲精品bv在线观看</a>| <a href="http://5tww.com" target="_blank">亚洲精品国产V片在线观看</a>| <a href="http://goldwellib.com" target="_blank">免费无码又爽又刺激一高潮</a>| <a href="http://ehiver.com" target="_blank">亚洲欧洲自拍拍偷综合</a>| <a href="http://meixiudashi.com" target="_blank">四虎成人免费网站在线</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>