锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩一区二区不卡,国产欧美高清视频在线,免费成人在线观看http://www.aygfsteel.com/znLin/zh-cnWed, 18 Jun 2025 18:47:32 GMTWed, 18 Jun 2025 18:47:32 GMT60Spring涓嬌鐢ˋOP鐨勭畝鍗曚緥瀛?/title><link>http://www.aygfsteel.com/znLin/archive/2011/03/21/346696.html</link><dc:creator>z_clear_n</dc:creator><author>z_clear_n</author><pubDate>Mon, 21 Mar 2011 10:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/znLin/archive/2011/03/21/346696.html</guid><wfw:comment>http://www.aygfsteel.com/znLin/comments/346696.html</wfw:comment><comments>http://www.aygfsteel.com/znLin/archive/2011/03/21/346696.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/znLin/comments/commentRss/346696.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/znLin/services/trackbacks/346696.html</trackback:ping><description><![CDATA[浠婂ぉ鍒氬垰瀛︿範浜哠pring錛屽仛涓畝鍗曠殑渚嬪瓙鍒嗕韓涓涓嬨傘傘?br /> <br /> 1銆侀鍏堬紝鍒涘緩鎺ュ彛BookService(鍖卌om.Vy.spring.Biz)<br /> <br /> package com.Vy.spring.Biz;<br /> <br /> public interface BookService {<br />     public boolean buy(String userName,String bookName,double price);<br /> }<br /> 2銆佸垱寤烘帴鍙e疄鐜扮被BookServiceImpl(鍖卌om.Vy.spring.BizImpl)<br /> <br /> package com.Vy.spring.BizImpl;<br /> <br /> import com.Vy.spring.Biz.BookService;<br /> <br /> public class BookServiceImpl implements BookService {<br /> <br />     @Override<br />     public boolean buy(String userName, String bookName, double price) {<br />         // TODO Auto-generated method stub<br />         System.out.println("涓氬姟鏂規硶buy寮濮嬫墽琛?);<br />         System.out.println("·"+userName+"璐拱鍥句功錛?+bookName);<br />         System.out.println("·"+userName+"澧炲姞縐垎"+(int)(price/10));<br />         System.out.println("·"+"鍚戠墿嫻佺郴緇熶笅鍙戣揣鍗?);<br />         System.out.println("涓氬姟鏂規硶buy緇撴潫");<br />         return true;<br />     }<br /> }<br /> 3銆佹坊鍔爏pring鏀寔錛坰pring鐗堟湰涓?.5錛?br />      閫夋嫨AOP搴撳拰Spring Core鏀寔<br />      涓嬩竴姝ヤ慨鏀箈ml鍚嶅瓧涓篴op.xml<br /> 4銆佺紪鍐檟ml鏂囦歡<br /> <?xml version="1.0" encoding="UTF-8"?><br /> <beans<br />     xmlns="http://www.springframework.org/schema/beans"<br />     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />     xmlns:p="http://www.springframework.org/schema/p"<br />     xsi:schemaLocation="http://www.springframework.org/schema/beans <br />     http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"><br />     <bean id="bookServiceTarget" class="com.Vy.spring.BizImpl.BookServiceImpl"></bean><br />     <bean id="logAdvice" class="com.Vy.spring.BizImpl.LogAdvice"></bean><br />     <bean id="bookService" class="org.springframework.aop.framework.ProxyFactoryBean"><br />         <property name="proxyInterfaces"><br />             <value>com.Vy.spring.Biz.BookService</value><br />         </property><br />         <property name="interceptorNames"><br />             <list><value>logAdvice</value></list><br />         </property><br />         <property name="target" ref="bookServiceTarget"></property><br />     </bean><br /> </beans><br /> 5銆佸垱寤烘祴璇曠被test錛堝寘Test錛?br /> package Test;<br /> <br /> import org.springframework.context.ApplicationContext;<br /> import org.springframework.context.support.ClassPathXmlApplicationContext;<br /> <br /> import com.Vy.spring.Biz.BookService;<br /> <br /> public class test {<br /> <br />     /**<br />      * @param args<br />      */<br />     public static void main(String[] args) {<br />         // TODO Auto-generated method stub<br />         ApplicationContext context=new ClassPathXmlApplicationContext("aop.xml");<br />         BookService bookService=(BookService)context.getBean("bookService");<br />         bookService.buy("znLin", "spring in action", 20.00);<br />     }<br /> <br /> }<br /> 6銆佽繍琛屾祴璇曘佹樉紺虹粨鏋?br /> <br /> [緋葷粺鏃ュ織][2011 騫?03 鏈?21 鏃?06 鏃?21 鍒?28 縐抅buy([znLin, spring in action, 20.0])<br /> 涓氬姟鏂規硶buy寮濮嬫墽琛?br /> ·znLin璐拱鍥句功錛歴pring in action<br /> ·znLin澧炲姞縐垎2<br /> ·鍚戠墿嫻佺郴緇熶笅鍙戣揣鍗?br /> 涓氬姟鏂規硶buy緇撴潫<br /> ------------------------------------------------------<br /> 絎竴嬈″啓鍗氬錛屼笉浼氳緗慨鏀瑰浘鐗囷紝浠ュ悗瀛︿範錛屽啓鐨勪笉濂斤紝鐪嬭呰璋咃紒錛侊紒<br /> <br /> <br /> <br /> <img src ="http://www.aygfsteel.com/znLin/aggbug/346696.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/znLin/" target="_blank">z_clear_n</a> 2011-03-21 18:26 <a href="http://www.aygfsteel.com/znLin/archive/2011/03/21/346696.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">汪清县</a>| <a href="http://" target="_blank">鹿邑县</a>| <a href="http://" target="_blank">中方县</a>| <a href="http://" target="_blank">肇州县</a>| <a href="http://" target="_blank">许昌县</a>| <a href="http://" target="_blank">恭城</a>| <a href="http://" target="_blank">荣昌县</a>| <a href="http://" target="_blank">吴江市</a>| <a href="http://" target="_blank">获嘉县</a>| <a href="http://" target="_blank">乌苏市</a>| <a href="http://" target="_blank">泽州县</a>| <a href="http://" target="_blank">临安市</a>| <a href="http://" target="_blank">十堰市</a>| <a href="http://" target="_blank">兴宁市</a>| <a href="http://" target="_blank">八宿县</a>| <a href="http://" target="_blank">宁蒗</a>| <a href="http://" target="_blank">达日县</a>| <a href="http://" target="_blank">夏河县</a>| <a href="http://" target="_blank">雅安市</a>| <a href="http://" target="_blank">皮山县</a>| <a href="http://" target="_blank">韶关市</a>| <a href="http://" target="_blank">慈溪市</a>| <a href="http://" target="_blank">久治县</a>| <a href="http://" target="_blank">瑞丽市</a>| <a href="http://" target="_blank">九江县</a>| <a href="http://" target="_blank">鄱阳县</a>| <a href="http://" target="_blank">玉屏</a>| <a href="http://" target="_blank">烟台市</a>| <a href="http://" target="_blank">广河县</a>| <a href="http://" target="_blank">竹溪县</a>| <a href="http://" target="_blank">伽师县</a>| <a href="http://" target="_blank">农安县</a>| <a href="http://" target="_blank">新田县</a>| <a href="http://" target="_blank">河曲县</a>| <a href="http://" target="_blank">大英县</a>| <a href="http://" target="_blank">承德市</a>| <a href="http://" target="_blank">穆棱市</a>| <a href="http://" target="_blank">高唐县</a>| <a href="http://" target="_blank">什邡市</a>| <a href="http://" target="_blank">黄陵县</a>| <a href="http://" target="_blank">河西区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>