工作心得网

工作心得精彩分享
代码积累持续学习

数据库连接加utf8

数据库连接加utf8

 <bean id="dataSource" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close">
   <property name="driverClass" value="com.mysql.jdbc.Driver"></property>  
   <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/XXXXX?useUnicode=true&amp;characterEncoding=utf-8"></property>  
   <property name="username" value="root"></property>  
   <property name="password" value="XXXXX"></property>
  <property name="idleMaxAge">
<value>530</value>
</property>
<property name="idleConnectionTestPeriod">
<value>60</value>
</property>
<property name="partitionCount">
<value>3</value>
</property>
<property name="acquireIncrement">
<value>1</value>
</property>
<property name="maxConnectionsPerPartition">
<value>2</value>
</property>
<property name="minConnectionsPerPartition">
<value>0</value>
</property>
<property name="connectionTimeout">
<value>5000</value>
</property>
<property name="statementsCacheSize">
<value>0</value>
</property>
<property name="releaseHelperThreads">
<value>3</value>
</property>
</bean>

我们的缺点麻烦您能提出,谢谢支持!

关于站长