锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲线精品一区二区三区,欧美v亚洲v综合v国产v仙踪林,亚洲电影一区二区http://www.aygfsteel.com/king1024/javazh-cnTue, 17 Jun 2025 03:13:00 GMTTue, 17 Jun 2025 03:13:00 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>鍥犱負(fù)鏁版嵁搴撹繛鎺ョ敤鎴峰悕鍜屽瘑鐮佷箣綾葷殑鏁忔劅淇℃伅錛屼竴鑸笉浼?xì)鏄惧紡鍦板啓鍦ㄩ厤缃枃錃g閲岋紝鎵浠ョ敤鍒?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 鐩綍錛夛細(xì)</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>鍦ㄥ疄闄呴」鐩腑鐨勫簲鐢ㄦ柟寮忥細(xì)</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>