锘??xml version="1.0" encoding="utf-8" standalone="yes"?>天堂√在线观看一区二区,1769视频在线播放免费观看,国产欧美精品一区二区三区介绍 http://www.aygfsteel.com/luluyanglu/category/48802.htmlzh-cnMon, 06 Jun 2011 14:50:27 GMTMon, 06 Jun 2011 14:50:27 GMT60Spring浜嬪姟閰嶇疆鐨勪簲縐嶆柟寮?http://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351829.html澶ч奔澶ч奔Mon, 06 Jun 2011 14:11:00 GMThttp://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351829.htmlhttp://www.aygfsteel.com/luluyanglu/comments/351829.htmlhttp://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351829.html#Feedback0http://www.aygfsteel.com/luluyanglu/comments/commentRss/351829.htmlhttp://www.aygfsteel.com/luluyanglu/services/trackbacks/351829.html闃呰鍏ㄦ枃

澶ч奔 2011-06-06 22:11 鍙戣〃璇勮
]]>
spring涓繛鎺ユ睜鐨勯厤緗?/title><link>http://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351828.html</link><dc:creator>澶ч奔</dc:creator><author>澶ч奔</author><pubDate>Mon, 06 Jun 2011 14:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351828.html</guid><wfw:comment>http://www.aygfsteel.com/luluyanglu/comments/351828.html</wfw:comment><comments>http://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351828.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/luluyanglu/comments/commentRss/351828.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/luluyanglu/services/trackbacks/351828.html</trackback:ping><description><![CDATA[鍦ㄩ粯璁ら氳繃myeclipse鐢熸垚鐨勯厤緗噷錛宻pring浣跨敤鐨勬槸apache鐨刣bcp榪炴帴姹? <p>銆銆<bean id="dataSource"</p> <p>銆銆class="org.apache.commons.dbcp.BasicDataSource"></p> <p>銆銆<property name="driverClassName"</p> <p>銆銆value="com.mysql.jdbc.Driver"></p> <p>銆銆</property></p> <p>銆銆<property name="url"</p> <p>銆銆value="jdbc:mysql://localhost:3306/mysql"></p> <p>銆銆</property></p> <p>銆銆<property name="username" value="root"></property></p> <p>銆銆<property name="password" value="root"></property></p> <p>銆銆</bean></p> <p>銆銆濡傛灉鏀逛負(fù)C3P0鍒欎負(fù)錛?/p> <p>銆銆<bean id="propertyConfigurer"</p> <p>銆銆class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"></p> <p>銆銆<property name="location"></p> <p>銆銆<value>classpath:jdbc.properties</value></p> <p>銆銆</property></p> <p>銆銆</bean></p> <p>銆銆<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"></p> <p>銆銆<property name="driverClass" value="com.mysql.jdbc.Driver" /></p> <p>銆銆<property name="jdbcUrl" value="${jdbc.url}" /></p> <p>銆銆<property name="user" value="${jdbc.username}" /></p> <p>銆銆<property name="password" value="${jdbc.password}" /></p> <p>銆銆<property name="autoCommitOnClose" value="true"/></p> <p>銆銆<property name="checkoutTimeout" value="${cpool.checkoutTimeout}"/></p> <p>銆銆<property name="initialPoolSize" value="${cpool.minPoolSize}"/></p> <p>銆銆<property name="minPoolSize" value="${cpool.minPoolSize}"/></p> <p>銆銆<property name="maxPoolSize" value="${cpool.maxPoolSize}"/></p> <p>銆銆<property name="maxIdleTime" value="${cpool.maxIdleTime}"/></p> <p>銆銆<property name="acquireIncrement" value="${cpool.acquireIncrement}"/></p> <p>銆銆<property name="maxIdleTimeExcessConnections" value="${cpool.maxIdleTimeExcessConnections}"/></p> <p>銆銆</bean></p> <p>銆銆jdbc.properties錛?/p> <p>銆銆# Database URL</p> <p>銆銆jdbc.url=jdbc:mysql://192.168.0.25"3306/db</p> <p>銆銆# Database login information</p> <p>銆銆jdbc.username=root</p> <p>銆銆jdbc.password=</p> <p>銆銆# Time to wait for an open connection before timing out</p> <p>銆銆# (in milliseconds)</p> <p>銆銆cpool.checkoutTimeout=5000</p> <p>銆銆# Connection pool size</p> <p>銆銆cpool.minPoolSize=5</p> <p>銆銆cpool.maxPoolSize=40</p> <p>銆銆# How long to keep unused connections around(in seconds)</p> <p>銆銆# Note: MySQL times out idle connections after 8 hours(28,800 seconds)</p> <p>銆銆# so ensure this value is below MySQL idle timeout</p> <p>銆銆cpool.maxIdleTime=25200</p> <p>銆銆# How long to hang on to excess unused connections after traffic spike</p> <p>銆銆# (in seconds)</p> <p>銆銆cpool.maxIdleTimeExcessConnections=1800</p> <p>銆銆# Acquiring new connections is slow, so eagerly retrieve extra connections</p> <p>銆銆# when current pool size is reached</p> <p>銆銆cpool.acquireIncrement=5</p> <p>銆銆鎴栬呭皢涓婇潰鐨?閮ㄥ垎鍐欐垚涓涓細(xì)</p> <p>銆銆<bean id="c3p0DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"></p> <p>銆銆<property name="driverClass"></p> <p>銆銆<value>${jdbc.driverClassName}</value></p> <p>銆銆</property></p> <p>銆銆<property name="jdbcUrl"></p> <p>銆銆<value>${jdbc.url}</value></p> <p>銆銆</property></p> <p>銆銆<property name="user"></p> <p>銆銆<value>${jdbc.username}</value></p> <p>銆銆</property></p> <p>銆銆<property name="password"></p> <p>銆銆<value>${jdbc.password}</value></p> <p>銆銆</property></p> <p>銆銆<property name="initialPoolSize"><value>10</value></property></p> <p>銆銆<property name="minPoolSize"><value>5</value></property></p> <p>銆銆<property name="maxPoolSize"><value>30</value></property></p> <p>銆銆<property name="acquireIncrement"><value>5</value></property></p> <p>銆銆<property name="maxIdleTime"><value>10</value></property></p> <p>銆銆<property name="maxStatements"><value>0</value></property></p> <p>銆銆</bean></p><br />濡傛灉浣跨敤鐨勬槸鍙楃鐞嗙殑J2EE<a class="channel_keylink" target="_blank">鏈嶅姟鍣?/a>錛屽垯鍦╯pring涓厤緗負(fù)JNDI榪炴帴錛? <p>銆銆<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"></p> <p>銆銆<property name="jndiName"></p> <p>銆銆<value>java:comp/env/jndi/xxx</value></p> <p>銆銆</property></p> <p>銆銆</bean></p> <p>銆銆濡傛灉鍦ㄥ簲鐢ㄩ噷鏈夌嫭鑷嬌鐢╤ibernate錛屽垯鍦╯pring涓厤緗甴ibernate榪炴帴姹狅紝浣跨敤C3P0濡備笅錛?/p> <p>銆銆<bean   id="DataSource"</p> <p>銆銆class="org.apache.commons.dbcp.BasicDataSource"></p> <p>銆銆<property   name="driverClassName"></p> <p>銆銆<value>oracle.jdbc.driver.<a class="channel_keylink" target="_blank">Oracle</a>Driver</value></p> <p>銆銆</property></p> <p>銆銆<property   name="url"></p> <p>銆銆<value>jdbc:oracle:thin:@172.16.20.241:1521:dbsvr</value></p> <p>銆銆</property></p> <p>銆銆<property   name="username"></p> <p>銆銆<value>hl3000</value></p> <p>銆銆</property></p> <p>銆銆<property   name="password"></p> <p>銆銆<value>hldw3101</value></p> <p>銆銆</property></p> <p>銆銆</bean></p> <p>銆銆<bean   id="SessionFactory"</p> <p>銆銆class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"></p> <p>銆銆<property   name="dataSource"></p> <p>銆銆<ref   bean="DataSource"   /></p> <p>銆銆</property></p> <p>銆銆<property   name="hibernateProperties"></p> <p>銆銆<props></p> <p>銆銆<prop   key="hibernate.dialect">org.hibernate.dialect.<a class="channel_keylink" target="_blank">Oracle</a>Dialect</prop></p> <p>銆銆<prop   key="hibernate.show_sql">true</prop></p> <p>銆銆<!--   C3P0榪炴帴姹犻厤緗?nbsp;  --></p> <p>銆銆<prop   key="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</prop></p> <p>銆銆<prop   key="hibernate.c3p0.max_size">20</prop></p> <p>銆銆<prop   key="hibernate.c3p0.min_size">5</prop></p> <p>銆銆<prop   key="hibernate.c3p0.timeout">120</prop></p> <p>銆銆<prop   key="hibernate.c3p0.max_statements">100</prop></p> <p>銆銆<prop   key="hibernate.c3p0.idle_test_period">120</prop></p> <p>銆銆<prop   key="hibernate.c3p0.acquire_increment">2</prop></p> <p>銆銆<prop   key="myeclipse.connection.profile">hl3000</prop></p> <p>銆銆</props></p> <p>銆銆</property></p> <p>銆銆<property   name="mappingResources"></p> <p>銆銆<list></p> <p>銆銆<value>com/hl3000/DBLogic/POJO/PermUserAccount.hbm.xml</value></p> <p>銆銆</list></p> <p>銆銆</property></p> <p>銆銆</bean></p> <p>銆銆spring涓厤緗嫭绔嬩嬌鐢╤ibernate鏃朵嬌鐢╦ndi鐨勯厤緗細(xì)</p> <p>銆銆hibernate.dialect = net.sf.hibernate.dialect.MySQLDialect</p> <p>銆銆hibernate.connection.datasource=java:comp/env/jdbc/SAMPLEDB</p> <p>銆銆hibernate.show_sql=true</p> <p>銆銆濡傛灉鏄嬌鐢ㄤ笉鍙楃鐞嗙殑Servlet瀹瑰櫒濡俆omcat錛屼篃鍙互浣跨敤jndi鐨勬柟寮忛厤緗紝闇瑕佸湪tomcat涓厤緗暟鎹簮錛屽湪server.xml涓鏀瑰ぇ鑷村涓嬶細(xì)</p> <p>銆銆<Resource name="jdbc/testDb" auth="Container"</p> <p>銆銆type="javax.sql.DataSource"/></p> <p>銆銆<ResourceParams name="jdbc/testDB">\\鏁版嵁婧愮殑鍚嶇О</p> <p>銆銆<parameter><name>username</name><value>root</value></parameter>鏁版嵁搴撶殑鍚嶇О</p> <p>銆銆<parameter><name>password</name><value>password</value></parameter>鏁版嵁搴撳瘑鐮?/p> <p>銆銆<parameter><name>driverClassName</name></p> <p>銆銆<value>org.gjt.mm.mysql.Driver</value></parameter>\\瑕佸姞杞界殑椹卞姩</p> <p>銆銆<parameter><name>url</name></p> <p>銆銆<value>jdbc:mysql://172.20.0.73/rk?</value></parameter>\\瑕佽繛鎺ョ殑URL</p> <p>銆銆</ResourceParams></p> <img src ="http://www.aygfsteel.com/luluyanglu/aggbug/351828.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/luluyanglu/" target="_blank">澶ч奔</a> 2011-06-06 22:02 <a href="http://www.aygfsteel.com/luluyanglu/archive/2011/06/06/351828.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>