锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区三区黄视频 ,日本午夜免费一区二区,亚洲综合福利http://www.aygfsteel.com/king1024/javazh-cnTue, 17 Jun 2025 21:59:57 GMTTue, 17 Jun 2025 21:59:57 GMT60鍦╯pring閲岄厤緗暟鎹簮榪炴帴姹?/title><link>http://www.aygfsteel.com/king1024/archive/2012/11/08/391018.html</link><dc:creator>Java鈥斺攌ing</dc:creator><author>Java鈥斺攌ing</author><pubDate>Thu, 08 Nov 2012 06:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/king1024/archive/2012/11/08/391018.html</guid><wfw:comment>http://www.aygfsteel.com/king1024/comments/391018.html</wfw:comment><comments>http://www.aygfsteel.com/king1024/archive/2012/11/08/391018.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/king1024/comments/commentRss/391018.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/king1024/services/trackbacks/391018.html</trackback:ping><description><![CDATA[<div> <div class="wmqeeuq" id="content" mod-cs-content="" text-content="" clearfix"=""> <p>spring 娌℃湁鎻愪緵鏁版嵁婧愯繛鎺ユ睜錛岀敤 DBCP銆?/p><p>涓嬭澆鍦板潃錛?a target="_blank">http://commons.apache.org/downloads/download_dbcp.cgi</a></p><p> </p><p>鍥犱負鏁版嵁搴撹繛鎺ョ敤鎴峰悕鍜屽瘑鐮佷箣綾葷殑鏁忔劅淇℃伅錛屼竴鑸笉浼氭樉寮忓湴鍐欏湪閰嶇疆鏂囦歡閲岋紝鎵浠ョ敤鍒?spring 鐨?propertyConfigurer 銆?/p><p>鍦?WEB-INF/classes 鐩綍涓嬫柊涓涓?jdbc.properties 鏂囦歡錛?/p><p> </p>Properties浠g爜 <a title="澶嶅埗浠g爜" ><img alt="澶嶅埗浠g爜" src="http://www.javaeye.com/images/icon_copy.gif" /></a><ol><li>#############   </li><li>## MySql   </li><li>#############   </li><li>jdbc.driverClassName=com.mysql.jdbc.Driver   </li><li>jdbc.url=jdbc:mysql://localhost/framework   </li><li>jdbc.username=root   </li><li>jdbc.password=123  </li></ol>############### MySql#############jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost/frameworkjdbc.username=rootjdbc.password=123<p> </p><p> </p><p> </p><p>閰嶇疆 Bean錛?#8220;classpath*:”鎸囧悜 WEB-INF/classes 鐩綍錛夛細</p>Xml浠g爜 <a title="澶嶅埗浠g爜" ><img alt="澶嶅埗浠g爜" src="http://www.javaeye.com/images/icon_copy.gif" /></a><ol><li><strong><bean</strong> id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"  </li><li>          lazy-init="false"<strong>></strong>  </li><li>        <strong><property</strong> name="locations"<strong>></strong>  </li><li>            <strong><list></strong>  </li><li>                <strong><value></strong>classpath*:jdbc.properties<strong></value></strong>  </li><li>            <strong></list></strong>  </li><li>        <strong></property></strong>  </li><li><strong></bean></strong>  </li></ol><bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false"> <property name="locations"> <list> <value>classpath*:jdbc.properties</value> </list> </property></bean><p> 涔嬪悗閰嶇疆鏁版嵁婧?/p>Xml浠g爜 <a title="澶嶅埗浠g爜" ><img alt="澶嶅埗浠g爜" src="http://www.javaeye.com/images/icon_copy.gif" /></a><ol><li><strong><bean</strong> id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"<strong>></strong>  </li><li>        <strong><property</strong> name="driverClassName" value="${jdbc.driverClassName}"<strong>/></strong>  </li><li>        <strong><property</strong> name="url" value="${jdbc.url}"<strong>/></strong>  </li><li>        <strong><property</strong> name="username" value="${jdbc.username}"<strong>/></strong>  </li><li>        <strong><property</strong> name="password" value="${jdbc.password}"<strong>/></strong>  </li><li><strong></bean></strong>  </li><li> <br /></li><li> <br /></li><li> <br /></li></ol><p> </p><p> </p><p>鍦ㄥ疄闄呴」鐩腑鐨勫簲鐢ㄦ柟寮忥細</p><p> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><br />           <property name="location" value="classpath:db.properties" /><br />    </bean></p><p>    <!--bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"><br />   <property name="driverClassName" value="${jdbc.driver}" /><br />   <property name="url" value="${jdbc.url}" /><br />   <property name="username" value="${jdbc.username}" /><br />   <property name="password" value="${jdbc.password}" /><br /> </bean--><br />    <br /> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><br />        <property name="driverClassName" value="${jdbc.driver}" /><br />        <property name="url" value="${jdbc.url}" /><br />        <property name="username" value="${jdbc.username}" /><br />        <property name="password" value="${jdbc.password}" /><br />    </bean></p><ol><li> <br /></li></ol> </div> <div clearfix"=""> <a >#Spring</a> </div></div><img src ="http://www.aygfsteel.com/king1024/aggbug/391018.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/king1024/" target="_blank">Java鈥斺攌ing</a> 2012-11-08 14:58 <a href="http://www.aygfsteel.com/king1024/archive/2012/11/08/391018.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>