锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国内精品亚洲,日本亚洲欧洲色α,青春草在线免费视频http://www.aygfsteel.com/josson/category/22021.html澶╁湴鐢熶漢,鏈変竴浜哄簲鏈変竴浜轟箣涓?浜虹敓鍦ㄤ笘,鐢熶竴鏃ュ綋灝戒竴鏃ヤ箣鍕?zh-cnThu, 20 Dec 2007 15:22:17 GMTThu, 20 Dec 2007 15:22:17 GMT60Spring鍜孲truct鏁村悎鐨勪笁涓柟娉?/title><link>http://www.aygfsteel.com/josson/archive/2007/12/20/168927.html</link><dc:creator>josson</dc:creator><author>josson</author><pubDate>Thu, 20 Dec 2007 01:25:00 GMT</pubDate><guid>http://www.aygfsteel.com/josson/archive/2007/12/20/168927.html</guid><wfw:comment>http://www.aygfsteel.com/josson/comments/168927.html</wfw:comment><comments>http://www.aygfsteel.com/josson/archive/2007/12/20/168927.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/josson/comments/commentRss/168927.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/josson/services/trackbacks/168927.html</trackback:ping><description><![CDATA[http://luoyuzj911.javaeye.com/blog/148817<br /> <img src ="http://www.aygfsteel.com/josson/aggbug/168927.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/josson/" target="_blank">josson</a> 2007-12-20 09:25 <a href="http://www.aygfsteel.com/josson/archive/2007/12/20/168927.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring 鐨勪簨鍔¢厤緗柟寮?/title><link>http://www.aygfsteel.com/josson/archive/2007/05/17/117964.html</link><dc:creator>josson</dc:creator><author>josson</author><pubDate>Thu, 17 May 2007 00:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/josson/archive/2007/05/17/117964.html</guid><wfw:comment>http://www.aygfsteel.com/josson/comments/117964.html</wfw:comment><comments>http://www.aygfsteel.com/josson/archive/2007/05/17/117964.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/josson/comments/commentRss/117964.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/josson/services/trackbacks/117964.html</trackback:ping><description><![CDATA[<strong>1.0鐨勬爣鍑嗕簨鍔¢厤緗ず渚?<br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;"><strong> </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>bean </strong></span><span style="color: #ff0000;"><strong>id</strong></span><span style="color: #0000ff;"><strong>="baseTxService"</strong></span><span style="color: #ff0000;"><strong> class</strong></span><span style="color: #0000ff;"><strong>="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</strong></span><span style="color: #ff0000;"><strong>  <br>           abstract</strong></span><span style="color: #0000ff;"><strong>="true"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>property </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="transactionManager"</strong></span><span style="color: #ff0000;"><strong> ref</strong></span><span style="color: #0000ff;"><strong>="transactionManager"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>property </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="proxyTargetClass"</strong></span><span style="color: #ff0000;"><strong> value</strong></span><span style="color: #0000ff;"><strong>="true"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>property </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="transactionAttributes"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>             </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>props</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>                 </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>prop </strong></span><span style="color: #ff0000;"><strong>key</strong></span><span style="color: #0000ff;"><strong>="get*"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>PROPAGATION_REQUIRED,readOnly</strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>prop</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>                 </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>prop </strong></span><span style="color: #ff0000;"><strong>key</strong></span><span style="color: #0000ff;"><strong>="find*"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>PROPAGATION_REQUIRED,readOnly</strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>prop</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>                 </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>prop </strong></span><span style="color: #ff0000;"><strong>key</strong></span><span style="color: #0000ff;"><strong>="save*"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>PROPAGATION_REQUIRED</strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>prop</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>                 </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>prop </strong></span><span style="color: #ff0000;"><strong>key</strong></span><span style="color: #0000ff;"><strong>="remove*"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>PROPAGATION_REQUIRED</strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>prop</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>             </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>props</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>property</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>property </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="preInterceptors"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>             </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>list</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>                 </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>ref </strong></span><span style="color: #ff0000;"><strong>bean</strong></span><span style="color: #0000ff;"><strong>="methodSecurityInterceptor"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>             </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>list</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>property</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>  </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>bean</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>  </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>bean </strong></span><span style="color: #ff0000;"><strong>id</strong></span><span style="color: #0000ff;"><strong>="userManager"</strong></span><span style="color: #ff0000;"><strong> parent</strong></span><span style="color: #0000ff;"><strong>="baseTxService"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>property </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="target"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>             </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>bean </strong></span><span style="color: #ff0000;"><strong>class</strong></span><span style="color: #0000ff;"><strong>="com.scommnet.acl.service.UserManager"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>property</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>  </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>bean</strong></span><span style="color: #0000ff;"><strong>></strong></span></div> <br></strong><strong>2.0鐨勪簨鍔¢厤緗ず渚?<br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;"><strong> </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>aop:config </strong></span><span style="color: #ff0000;"><strong>proxy-target-class</strong></span><span style="color: #0000ff;"><strong>="true"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>     </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>aop:advisor </strong></span><span style="color: #ff0000;"><strong>pointcut</strong></span><span style="color: #0000ff;"><strong>="execution(* com.scommnet.acl.*Manager.*(..))"</strong></span><span style="color: #ff0000;"><strong> advice-ref</strong></span><span style="color: #0000ff;"><strong>="txAdvice"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>     </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>aop:advisor </strong></span><span style="color: #ff0000;"><strong>pointcut</strong></span><span style="color: #0000ff;"><strong>="execution(* com.scommnet.sms.*Manager.save(..))"</strong></span><span style="color: #ff0000;"><strong> advice-ref</strong></span><span style="color: #0000ff;"><strong>="fooAdvice"</strong></span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br> </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>aop:config</strong></span><span style="color: #0000ff;"><strong>><</strong></span><span style="color: #800000;"><strong>tx:advice </strong></span><span style="color: #ff0000;"><strong>id</strong></span><span style="color: #0000ff;"><strong>="txAdvice"</strong></span><span style="color: #ff0000;"><strong> transaction-manager</strong></span><span style="color: #0000ff;"><strong>="transactionManager"</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>     </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>tx:attributes</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>tx:method </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="get*"</strong></span><span style="color: #0000ff;"><strong> </strong></span><strong><strong><span style="color: #ff0000;"><strong>read-only</strong></span><span style="color: #0000ff;"><strong>="true"</strong></span></strong></strong><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>tx:method </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="find*"</strong></span><span style="color: #0000ff;"><strong> </strong></span><strong><strong><span style="color: #ff0000;"><strong>read-only</strong></span><span style="color: #0000ff;"><strong>="true"</strong></span></strong></strong><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>         </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>tx:method </strong></span><span style="color: #ff0000;"><strong>name</strong></span><span style="color: #0000ff;"><strong>="*"</strong></span><span style="color: #ff0000;"><strong> </strong></span><span style="color: #0000ff;">rollback-for="BusinessException"</span><span style="color: #0000ff;"><strong>/></strong></span><span style="color: #000000;"><strong>  <br>    </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>tx:attributes</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br> </strong></span><span style="color: #0000ff;"><strong></</strong></span><span style="color: #800000;"><strong>tx:advice</strong></span><span style="color: #0000ff;"><strong>></strong></span><span style="color: #000000;"><strong>  <br>   <br> </strong></span><span style="color: #0000ff;"><strong><</strong></span><span style="color: #800000;"><strong>bean </strong></span><span style="color: #ff0000;"><strong>id</strong></span><span style="color: #0000ff;"><strong>="userManager"</strong></span><span style="color: #ff0000;"><strong> class</strong></span><span style="color: #0000ff;"><strong>="com.scommnet.acl.service.UserManager"</strong></span><span style="color: #0000ff;"><strong>/></strong></span></div> <br></strong>pointcut璇硶璇存槑錛孲pring<a target="blank">鍙傝冩枃妗?.2.3.4閲?/a>鏈夊畬鏁磋鏄庛?br> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) throws-pattern?)</span></div> <br>鍏朵腑甯﹂棶鍙風殑modifiers-pattern?(public/protected) 鍜?declaring-type-pattern? throws-pattern? 鍙互涓嶅~ <p>鍙execution(* *..UserManager.save(..))</p> <p>絎竴棰? 浠h〃ret-type-pattern 榪斿洖鍊煎彲浠繪剰錛?..UserManager 浠h〃浠繪剰Pacakge閲岀殑BookManager綾匯? <br>濡傛灉鍐欐垚com.xyz.service.* 鍒欎唬琛╟om.xyz.service涓嬬殑浠繪剰綾伙紝com.xyz.service..* com.xyz.service鍒欎唬琛╟om.xyz.service鍙婂叾瀛恜ackage涓嬬殑浠繪剰綾伙紝save浠h〃save鏂規硶錛屼篃鍙互鍐檚ave* 浠h〃saveBook()絳夋柟娉? 銆?/p> <p>(..) 鍖歸厤0涓弬鏁版垨鑰呭涓弬鏁扮殑錛屼換鎰忕被鍨? <br>(x,..) 絎竴涓弬鏁扮殑綾誨瀷蹇呴』鏄疿 <br>(x,,,s,..) 鍖歸厤鑷沖皯4涓弬鏁幫紝絎竴涓弬鏁板繀欏繪槸x綾誨瀷錛岀浜屼釜鍜岀涓変釜鍙傛暟鍙互浠繪剰錛岀鍥涗釜蹇呴』鏄痵綾誨瀷銆?</p> 娉ㄦ剰name-pattern鍗冧竾涓嶈鍐欐垚*..*Manager 錛岃繖鏍峰瓙鐨勮瘽浼氭妸鎵鏈夌涓夋柟綾誨簱鐨凪anager姣斿Spring鐨凱latformTranstationManager 涔熷姞鍏op錛岄潪甯稿嵄闄┿傛墍浠ユ渶濂借繕鏄姞涓婇」鐩殑package鍓嶇紑錛屽com.sample<br><img src ="http://www.aygfsteel.com/josson/aggbug/117964.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/josson/" target="_blank">josson</a> 2007-05-17 08:54 <a href="http://www.aygfsteel.com/josson/archive/2007/05/17/117964.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>(鏀惰棌)Servlet(鎴栬匜ilter錛屾垨鑰匧istener)涓嬌鐢╯pring鐨処OC瀹瑰櫒http://www.aygfsteel.com/josson/archive/2007/04/25/113573.htmljossonjossonWed, 25 Apr 2007 09:08:00 GMThttp://www.aygfsteel.com/josson/archive/2007/04/25/113573.htmlhttp://www.aygfsteel.com/josson/comments/113573.htmlhttp://www.aygfsteel.com/josson/archive/2007/04/25/113573.html#Feedback0http://www.aygfsteel.com/josson/comments/commentRss/113573.htmlhttp://www.aygfsteel.com/josson/services/trackbacks/113573.html 鍦⊿ervlet鎴栬協ilter鎴栬匧istener涓嬌鐢╯pring鐨処OC瀹瑰櫒鐨勬柟娉曟槸錛?br>
WebApplicationContext webApplicationContext =
    WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext()); 

鐢變簬spring鏄敞鍏ョ殑瀵硅薄鏀懼湪ServletContext涓殑錛屾墍浠ュ彲浠ョ洿鎺ュ湪ServletContext鍙栧嚭WebApplicationContext 瀵硅薄錛?br>
WebApplicationContext webApplicationContext =
    (WebApplicationContext) servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);

浜嬪疄涓奧ebApplicationContextUtils.getWebApplicationContext鏂規硶灝辨槸浣跨敤涓婇潰鐨勪唬鐮佸疄鐜扮殑錛屽緩璁嬌鐢ㄤ笂闈笂闈㈢殑闈欐佹柟娉?/span>

josson 2007-04-25 17:08 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 十堰市| 迁西县| 青岛市| 古丈县| 勃利县| 建阳市| 普兰县| 城口县| 萨迦县| 桂平市| 内乡县| 舞阳县| 建宁县| 承德县| 蛟河市| 梧州市| 东辽县| 钦州市| 连南| 长泰县| 名山县| 苗栗县| 建昌县| 上虞市| 福泉市| 玉门市| 汾西县| 沛县| 阳新县| 原阳县| 东兴市| 塔城市| 九龙城区| 海林市| 南昌市| 龙海市| 阿拉善盟| 镇江市| 文化| 工布江达县| 白水县|