锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧洲毛片在线,亚洲激情国产精品,亚洲大全视频http://www.aygfsteel.com/shiwenfeng/category/42358.html鍦ㄤ笉鏂ā浠褲佹濊冦佹葷粨涓竴姝ヤ竴姝ヨ繘姝ワ紒zh-cnMon, 25 Jan 2010 11:23:12 GMTMon, 25 Jan 2010 11:23:12 GMT60Spring3.0甯︽潵鐨勬柊鐗規?/title><link>http://www.aygfsteel.com/shiwenfeng/archive/2010/01/25/310750.html</link><dc:creator>shiwf</dc:creator><author>shiwf</author><pubDate>Mon, 25 Jan 2010 09:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/shiwenfeng/archive/2010/01/25/310750.html</guid><wfw:comment>http://www.aygfsteel.com/shiwenfeng/comments/310750.html</wfw:comment><comments>http://www.aygfsteel.com/shiwenfeng/archive/2010/01/25/310750.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/shiwenfeng/comments/commentRss/310750.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/shiwenfeng/services/trackbacks/310750.html</trackback:ping><description><![CDATA[<p><font style="background-color: #cce8cf">涓銆侀鍏堬紝妯″潡鐨勭粍緇囨洿鍔犵殑緇嗚嚧錛屼粠閭d箞澶氱殑jar鍒嗗寘灝辯湅鐨勫嚭鏉ワ細</font></p> <p><font style="background-color: #cce8cf"> </font></p> <p><font style="background-color: #cce8cf">Spring鐨勬瀯寤虹郴緇熶互鍙婁緷璧栫鐞嗕嬌鐢ㄧ殑鏄疉pache Ivy錛屼粠婧愮爜鍖呯湅鍑猴紝涔熶嬌鐢ㄤ簡Maven銆?/font></p> <p><font style="background-color: #cce8cf">Maven紜疄鏄釜濂戒笢瑗匡紝濂藉涓嶅啀澶氳█錛屼互鍚庡笇鏈涜兘榪涗竴姝ョ敤濂藉畠銆?/font></p> <p><font style="background-color: #cce8cf">浜屻佹柊鐗規у涓嬶細</font></p> <p><font style="background-color: #cce8cf">Spring Expression Language 錛圫pring琛ㄨ揪寮忚璦錛?/font></p> <p><font style="background-color: #cce8cf">IoC enhancements/Java based bean metadata 錛圛oc澧炲己/鍩轟簬Java鐨刡ean鍏冩暟鎹級</font></p> <p><font style="background-color: #cce8cf">General-purpose type conversion system and UI field formatting system 錛堥氱敤綾誨瀷杞崲緋葷粺鍜孶I瀛楁鏍煎紡鍖栫郴緇燂級</font></p> <p><font style="background-color: #cce8cf">Object to XML mapping functionality (OXM) moved from Spring Web Services project 錛堝璞″埌XML鏄犲皠鍔熻兘浠嶴pring Web Services欏圭洰縐誨嚭錛?/font></p> <p><font style="background-color: #cce8cf">Comprehensive REST support 錛堝箍娉涚殑REST鏀寔錛?/font></p> <p><font style="background-color: #cce8cf">@MVC additions 錛園MVC澧炲己錛?/font></p> <p><font style="background-color: #cce8cf">Declarative model validation 錛堝0鏄庡紡妯″瀷楠岃瘉錛?/font></p> <p><font style="background-color: #cce8cf">Early support for Java EE 6 錛堟彁鍓嶅Java EE6鎻愪緵鏀寔錛?/font></p> <p><font style="background-color: #cce8cf">Embedded database support 錛堝祵鍏ュ紡鏁版嵁搴撶殑鏀寔錛?/font></p> <p><font style="background-color: #cce8cf">涓夈侀拡瀵笿ava 5鐨勬牳蹇傾PI鍗囩駭</font></p> <p><font style="background-color: #cce8cf">1銆丅eanFactory鎺ュ彛灝藉彲鑳借繑鍥炴槑紜殑bean瀹炰緥錛屼緥濡傦細</font></p> <p><font style="background-color: #cce8cf">T getBean(String name, Class requiredType)</font></p> <p><font style="background-color: #cce8cf">Map getBeansOfType(Class type)</font></p> <p><font style="background-color: #cce8cf">Spring3瀵規硾鍨嬬殑鏀寔錛屽張榪涗簡涓姝ャ備釜浜哄緩璁硾鍨嬪簲璇ュ鐢紝鏈夌櫨鍒╄屾棤涓瀹籌紒</font></p> <p><font style="background-color: #cce8cf">2銆丼pring鐨凾askExecutor鎺ュ彛鐜板湪緇ф壙鑷猨ava.util.concurrent.Executor錛?/font></p> <p><font style="background-color: #cce8cf">鎵╁睍鐨勫瓙鎺ュ彛AsyncTaskExecutor鏀寔鏍囧噯鐨勫叿鏈夎繑鍥炵粨鏋淔utures鐨凜allables銆?/font></p> <p><font style="background-color: #cce8cf">浠誨姟璁″垝錛屼釜浜鴻繕鏄洿鍠滄Quartz銆?/font></p> <p><font style="background-color: #cce8cf">3銆佹柊鐨勫熀浜嶫ava5鐨凙PI鍜孲PI杞崲鍣?/font></p> <p><font style="background-color: #cce8cf">鏃犵姸鎬佺殑ConversionService 鍜?Converters</font></p> <p><font style="background-color: #cce8cf">鍙栦唬鏍囧噯鐨凧DK PropertyEditors</font></p> <p><font style="background-color: #cce8cf">綾誨瀷鍖栫殑ApplicationListener錛岃繖鏄竴涓疄鐜?#8220;瑙傚療鑰呰璁℃ā寮?#8221;浣跨敤鐨勪簨浠剁洃鍚櫒銆?/font></p> <p><font style="background-color: #cce8cf">鍩轟簬浜嬩歡鐨勭紪紼嬫ā寮忥紝濂藉澶氬錛屽湪欏圭洰涓簲璇ヨ冭檻浣跨敤錛屽熀浜庝簨浠躲佺姸鎬佽縼縐葷殑璁捐鎬濊礬錛屾湁鍔╀簬鐞嗘竻杞歡嫻佺▼錛屽拰鍑忓皯欏圭洰鐨勮﹀悎搴︺?/font></p> <p><font style="background-color: #cce8cf">鍥涖丼pring琛ㄨ揪寮忚璦</font></p> <p><font style="background-color: #cce8cf">Spring琛ㄨ揪寮忚璦鏄竴縐嶄粠璇硶涓婂拰緇熶竴琛ㄨ揪寮忚璦錛圲nified EL錛夌浉綾諱技鐨勮璦錛屼絾鎻愪緵鏇村鐨勯噸瑕佸姛鑳姐傚畠鍙互鍦ㄥ熀浜嶺ML閰嶇疆鏂囦歡鍜屽熀浜庢敞瑙g殑bean閰嶇疆涓嬌鐢紝騫朵綔涓哄熀紜涓鴻法Spring portfolio騫沖彴浣跨敤琛ㄨ揪寮忚璦鎻愪緵鏀寔銆?/font></p> <p><font style="background-color: #cce8cf">鎺ヤ笅鏉ワ紝鏄竴涓〃杈懼紡璇█濡備綍鐢ㄤ簬閰嶇疆涓涓暟鎹簱瀹夎涓殑灞炴х殑紺轟緥錛?/font></p> <p><font style="background-color: #cce8cf"><bean class="mycompany.RewardsTestDatabase"><br />     <property name="databaseName"<br />         value="#{systemProperties.databaseName}"/><br />     <property name="keyGenerator"<br />         value="#{strategyBean.databaseKeyGenerator}"/><br /> </bean><br /> 濡傛灉浣犳洿鎰挎剰浣跨敤娉ㄨВ鏉ラ厤緗綘鐨勭粍浠訛紝閭d箞榪欑鍔熻兘鍚屾牱鍙敤錛?/font></p> <p><font style="background-color: #cce8cf">@Repository public class RewardsTestDatabase { <br />       @Value("#{systemProperties.databaseName}") <br />       public void setDatabaseName(String dbName) { … } <br />       <br />       @Value("#{strategyBean.databaseKeyGenerator}") <br />       public voidsetKeyGenerator(KeyGenerator kg) { … } <br /> }</font></p> <p><font style="background-color: #cce8cf">鍙堝涓縐嶈〃杈懼紡璇█錛岄犺疆瀛愮殑榪愬姩榪樺湪緇х畫涓紒</font></p> <p><font style="background-color: #cce8cf">浜斻佸熀浜嶫ava鐨刡ean鍏冩暟鎹?/font></p> <p><font style="background-color: #cce8cf">JavaConfig欏圭洰涓殑涓浜涙牳蹇冪壒鎬у凡緇忛泦鎴愬埌浜哠pring涓潵錛岃繖鎰忓懗鐫濡備笅榪欎簺鐗規х幇鍦ㄥ凡緇忓彲鐢ㄤ簡錛?/font></p> <p><font style="background-color: #cce8cf">@Configuration </font></p> <p><font style="background-color: #cce8cf">@Bean </font></p> <p><font style="background-color: #cce8cf">@DependsOn </font></p> <p><font style="background-color: #cce8cf">@Primary </font></p> <p><font style="background-color: #cce8cf">@Lazy </font></p> <p><font style="background-color: #cce8cf">@Import </font></p> <p><font style="background-color: #cce8cf">@Value</font></p> <p><font style="background-color: #cce8cf">鍙堟潵涓鍫嗙殑娉ㄨВ錛屾棤璇簡錛屾劅瑙夎繕鏄厤緗枃浠舵柟渚匡紒錛氾紙</font></p> <p><font style="background-color: #cce8cf">榪欏効鏈変竴涓緥瀛愶紝鍏充簬涓涓狫ava綾誨浣曚嬌鐢ㄦ柊鐨凧avaConfig鐗規ф彁渚涘熀紜鐨勯厤緗俊鎭細</font></p> <p><font style="background-color: #cce8cf">package org.example.config;</font></p> <p><font style="background-color: #cce8cf">@Configuration<br /> public class AppConfig {<br />     private @Value("#{jdbcProperties.url}") String jdbcUrl;<br />     private @Value("#{jdbcProperties.username}") String username;<br />     private @Value("#{jdbcProperties.password}") String password;</font></p> <p><font style="background-color: #cce8cf">    @Bean<br />     public FooService fooService() {<br />         return new FooServiceImpl(fooRepository());<br />     }</font></p> <p><font style="background-color: #cce8cf">    @Bean<br />     public FooRepository fooRepository() {<br />         return new HibernateFooRepository(sessionFactory());<br />     }</font></p> <p><font style="background-color: #cce8cf">    @Bean<br />     public SessionFactory sessionFactory() {<br />         // wire up a session factory<br />         AnnotationSessionFactoryBean asFactoryBean = <br />             new AnnotationSessionFactoryBean();<br />         asFactoryBean.setDataSource(dataSource());<br />         // additional config<br />         return asFactoryBean.getObject();<br />     }</font></p> <p><font style="background-color: #cce8cf">    @Bean<br />     public DataSource dataSource() { <br />         return new DriverManagerDataSource(jdbcUrl, username, password);<br />     }<br /> }涓轟簡璁╄繖孌典唬鐮佸紑濮嬬敓鏁堬紝鎴戜滑闇瑕佹坊鍔犲涓嬬粍浠舵壂鎻忓叆鍙e埌鏈灝忓寲鐨勫簲鐢ㄧ▼搴忎笂涓嬫枃閰嶇疆鏂囦歡涓細</font></p> <p><font style="background-color: #cce8cf"><context:component-scan base-package="org.example.config"/><br /> <util:properties id="jdbcProperties" location="classpath:org/example/config/jdbc.properties"/></font></p> <p><font style="background-color: #cce8cf">鍏佸湪緇勪歡涓畾涔塨ean鐨勫厓鏁版嵁</font></p> <p><font style="background-color: #cce8cf">鎰熻Spring鎻愪緵浜嗚秺鏉ヨ秺澶氱殑娉ㄨВ銆佸厓鏁版嵁錛屽鏉傛у凡緇忚秴鍑轟簡褰撳垵甯︽潵鐨勬柟渚挎湰韜紒</font></p> <p><font style="background-color: #cce8cf">涓冦侀氱敤綾誨瀷杞崲緋葷粺鍜孶I瀛楁鏍煎紡鍖栫郴緇?/font></p> <p><font style="background-color: #cce8cf">Spring3鍔犲叆浜嗕竴涓氱敤鐨勭被鍨嬭漿鎹㈢郴緇燂紝鐩墠瀹冭SpEL鐢ㄤ綔綾誨瀷杞崲錛屽茍涓斿彲鑳借涓涓猄pring瀹瑰櫒浣跨敤錛岀敤浜庡綋緇戝畾bean鐨勫睘鎬у肩殑鏃跺欒繘琛岀被鍨嬭漿鎹€?/font></p> <p><font style="background-color: #cce8cf">鍙﹀錛岃繕澧炲姞浜嗕竴涓猆I瀛楁鏍煎紡鍖栫郴緇燂紝瀹冩彁渚涗簡鏇寸畝鍗曠殑浣跨敤騫朵笖鏇村己澶х殑鍔熻兘浠ユ浛浠I鐜涓嬬殑JavaBean鐨凱ropertyEditors錛屼緥濡傚湪SpringMVC涓?/font></p> <p><font style="background-color: #cce8cf">榪欎釜鐗規ц濂藉ソ鐮旂┒涓嬶紝閫氱敤綾誨瀷杞崲緋葷粺濡傛灉鏋滃鎵璦鐨勮瘽錛屽甫鏉ョ殑濂藉榪樻槸寰堝鐨勩?/font></p> <p><font style="background-color: #cce8cf">鍏佹暟鎹眰</font></p> <p><font style="background-color: #cce8cf">瀵硅薄鍒癤ML鐨勬槧灝勫姛鑳藉凡緇忎粠Spring Web Services欏圭洰縐誨埌浜哠pring妗嗘灦鏍稿績涓傚畠浣嶄簬org.springframework.oxm鍖呬腑銆?/font></p> <p><font style="background-color: #cce8cf">OXM?鐮旂┒涓嬶紒鏃墮棿鐪熶笉澶燂紒</font></p> <p><font style="background-color: #cce8cf">涔濄乄eb灞?/font></p> <p><font style="background-color: #cce8cf">鍦╓eb灞傛渶嬋鍔ㄤ漢蹇冪殑鏂扮壒鎬ц帿榪囦簬鏂板鐨勫鏋勪歡REST椋庢牸鐨剋eb鏈嶅姟鍜寃eb搴旂敤鐨勬敮鎸侊紒鍙﹀錛岃繕鏂板鍔犱簡涓浜涗換浣晈eb搴旂敤閮藉彲浠ヤ嬌鐢ㄧ殑鏂扮殑娉ㄨВ銆?/font></p> <p><font style="background-color: #cce8cf">鏈嶅姟绔浜嶳EST椋庢牸鐨勬敮鎸侊紝鏄氳繃鎵╁睍鏃㈡湁鐨勬敞瑙i┍鍔ㄧ殑MVC web妗嗘灦瀹炵幇鐨勩?/font></p> <p><font style="background-color: #cce8cf">瀹㈡埛绔殑鏀寔鍒欐槸RestTemplate綾繪彁渚涚殑銆?/font></p> <p><font style="background-color: #cce8cf">鏃犺鏈嶅姟绔繕鏄鎴風REST鍔熻兘錛岄兘鏄嬌鐢℉ttpConverter鏉ョ畝鍖栧HTTP璇鋒眰鍜屽簲絳旇繃紼嬩腑鐨勫璞″埌琛ㄧ幇灞傜殑杞崲榪囩▼銆?/font></p> <p><font style="background-color: #cce8cf">MarshallingHttpMessageConverter浣跨敤浜嗕笂闈㈡彁鍒扮殑“瀵硅薄鍒癤ML鐨勬槧灝勬満鍒?#8221;銆?/font></p> <p><font style="background-color: #cce8cf">鍗併丂MVC澧炲己</font></p> <p><font style="background-color: #cce8cf">鏂板浜嗚濡侤CookieValue 鍜?@RequestHeaders榪欐牱鐨勬敞瑙g瓑銆?/font></p> <p><font style="background-color: #cce8cf">鍗佷竴銆佸0鏄庡紡妯″瀷楠岃瘉</font></p> <p><font style="background-color: #cce8cf">鏀寔JSR 303錛屼嬌鐢℉ibernate Validator浣滀負瀹炵幇銆?/font></p> <p><font style="background-color: #cce8cf">鍗佷簩銆佹彁鍓嶅Java EE6鎻愪緵鏀寔</font></p> <p><font style="background-color: #cce8cf">鎻愪緵浜嗕嬌鐢ˊAsync娉ㄨВ瀵逛簬寮傛鏂規硶璋冪敤鐨勬敮鎸侊紙鎴栬匛JB 3.1閲岀殑 @Asynchronous錛?/font></p> <p><font style="background-color: #cce8cf">鍙﹀錛屾柊澧炲JSR 303, JSF 2.0, JPA 2.0絳夌殑鏀寔銆?/font></p> <p><font style="background-color: #cce8cf">鍗佷笁銆佸祵鍏ュ紡鏁版嵁搴撶殑鏀寔</font></p> <p><font style="background-color: #cce8cf">瀵逛簬宓屽叆寮忕殑Java鏁版嵁搴撳紩鎿庢彁渚涗簡騫挎硾鑰屾柟渚跨殑鏀寔錛岃濡侶SQL, H2, 浠ュ強Derby絳夈?/font></p> <p><font style="background-color: #cce8cf">榪欐槸涓嶆槸浠h〃涓縐嶆疆嫻佸憿錛熸暟鎹簱鍚戣秺鏉ヨ秺灝忓瀷鍖栧彂灞曪紝鐢氳嚦灝忓瀷鍖栧埌宓屽叆寮忎簡錛屾垜璁や負榪欏湪妗岄潰綰у簲鐢ㄤ笂榪樻槸寰堟湁甯傚満鐨勩?/font></p> <p><font style="background-color: #cce8cf"></font> </p> <p><font style="background-color: #cce8cf">鏈枃鏉ヨ嚜CSDN鍗氬錛岃漿杞借鏍囨槑鍑哄錛歨ttp://blog.csdn.net/abigfrog/archive/2009/10/30/4748685.aspx</font></p> <img src ="http://www.aygfsteel.com/shiwenfeng/aggbug/310750.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/shiwenfeng/" target="_blank">shiwf</a> 2010-01-25 17:26 <a href="http://www.aygfsteel.com/shiwenfeng/archive/2010/01/25/310750.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>