锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品久久久久久久久电影网,亚洲国产精品成人久久综合一区,亚洲va久久久噜噜噜久久http://www.aygfsteel.com/znLin/zh-cnThu, 19 Jun 2025 04:57:02 GMTThu, 19 Jun 2025 04:57:02 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>