hibernate + spring at c3p0 configuration

<bean destroy-method="close">
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
        <property name="jdbcUrl" value="jdbc:mysql://192.168.0.xx/xx?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;transformedBitIsBoolean=true"/>
        <property name="user" value="xx"/>
        <property name="password" value="xx"/>

                <property name="initialPoolSize" value="60" />
                <property name="minPoolSize" value="50" />
                <property name="maxPoolSize" value="100" />
                <property name="maxIdleTime" value="7200" />

                <property name="idleConnectionTestPeriod" value="360" />
                <property name="preferredTestQuery" value="select 1" />
                <property name="acquireIncrement" value="5" />
                <property name="acquireRetryAttempts" value="50" />
                <property name="acquireRetryDelay" value="1000" />
                <property name="breakAfterAcquireFailure" value="true" />

                <property name="checkoutTimeout" value="1000" />

                <property name="autoCommitOnClose" value="false" />
                <property name="forceIgnoreUnresolvedTransactions" value="false" />
                <property name="unreturnedConnectionTimeout" value="1000" />

                <property name="maxStatements" value="0" />
                <property name="maxStatementsPerConnection" value="0" />

                <property name="testConnectionOnCheckin" value="true" />
                <property name="testConnectionOnCheckout" value="false" />
                <property name="usesTraditionalReflectiveProxies" value="false" />

                <property name="numHelperThreads" value="5" />
    </bean>
分类:Java 时间:2009-04-13 人气:1524
本文关键词: lt amp utf 8 192 driver gt
分享到:
blog comments powered by Disqus

相关文章

  • php codes in the ASC Ⅱ 2011-05-25

    Previously spent a lot of time, the Chinese can turn to find ascii code php code, utf-8 is only a kind of ascii. Later in the manual found one, turned this into a batch conversion, also added a code to restore the common ascii characters. This code i

  • 浅析PHP的ASCII码转换类 2014-07-14

    本篇文章是对PHP的ASCII码转换类进行了详细的分析介绍,需要的朋友参考下 class ascii { function decode($str) { preg_match_all( "/(d{2,5})/", $str,$a); $a = $a[0]; foreach ($a as $dec) { if ($dec < 128) { $utf .= chr($dec); } else if ($dec < 2048) { $utf .= chr(192 + (($dec

  • PHP 中文处理技巧 2015-01-16

    做AJAX应用或Flash应用,提交中文内容到后台,涉及到编码解码(encode.decode)及编码格式的转换. 折腾了一天的时间,才弄出点眉目来. 做AJAX应用或Flash应用,提交中文内容到后台,涉及到编码解码(encode.decode)及编码格式的转换. 网上的PHP端escape unescape函数建议不要用,它把中英文混合时的英文过滤掉了,我是莫名其妙了N久啊,建议用unicode_urldecode这个. 再就是编码格式的转换,这主要涉及数据的存储和客户端返回,用iconv就

  • jdbc driver 4 and the common types of jdbc connection string 2009-11-19

    1: jdbc driver 4 types Type1: through the use of JDBC-odbc bridge to connect oracle, poor portability Type2: oracle oci: relatively poor portability, it is necessary to depend on the oracle of the oci (client) installation But can be more efficient.

  • Filter Driver: filter (modification) to accept packets 2010-04-20

    Filter drivers can implement a simple firewall. It can filter all the receivers to the package, and then analyze the deal, Finally, decide if Wangshang passed to the Protocol Ceng, and finally to Ying Yong Cheng. Our principle is not received NBL mod

  • [Reprinted] Subject: MySql the JDBC driver does not support batch operations (update) 2010-09-25

    Subject: MySql the JDBC driver does not support batch operations (update) srdrm response is very good:) While the use mysql Not too many companies have been using mssql. Landlord of the test results very disappointing ... But mysql reputation so grea

  • Python script to install the driver to access postgessql 2010-11-06

    Using python script to access the PostgresSQL Need to install driver In the windows install psycopg2-2.2.2.win32-py2.6-pg9.0.1-release.exe on it Under the liunx is also very simple, download a psycopg2-2.2.2.tar.gz tar zxf psycopg2-2.2.2.tar.gz cd ps

  • mysql odbc does not recognize 192.168.1.22 2011-07-14

    Today, the reverse with the power designer mysql database and found that actually can not establish 192.168.1.22 mysql odbc data source, reports: Connection Fialed: [HY000] [MySQL] [ODBC 5.1 Driver] Access denied for user 'xxx' @ '192 .168. 19.105 '(

  • [Reserved] Topic: MySql JDBC driver does not support bulk operations (update) 2010-09-25

    Topic: MySql JDBC driver does not support bulk operations (update) srdrm response is very good:) mysql Although used much, the company has been using the mssql. Landlord of the test results very disappointing ... However, such a great reputation mysq

  • Install the driver to make a python script to access postgessql 2010-11-06

    Using python script to access PostgresSQL Need to install driver In the windows install psycopg2-2.2.2.win32-py2.6-pg9.0.1-release.exe on it In liunx under very simple, download a psycopg2-2.2.2.tar.gz tar zxf psycopg2-2.2.2.tar.gz cd psycopg2-2.2.2

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.117 (s). 12 q(s)