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 人气:1520
本文关键词: lt amp utf 8 192 driver gt
分享到:
blog comments powered by Disqus

相关文章

  • The simple JDBC package 2010-05-12

    This article is a simple JDBC package, attracting a number of ideas through the line package, the package is very general, each database are available, if there is any error, please advise, Thank you: 1. Configuration file <?xml version="1.0"

  • jsp upload files to the database and download files from the database 2010-05-01

    This is collected from the Internet. That seems to only upload a single file. Used the commons-fileupload-1.2.jar and commons-io-1.3.2.jar these two packages. save.jsp <% @ Page language = "java" contentType = "text / html; charset = utf

  • hibernate Chinese garbled solution 2010-03-22

    I use hibernate Synchronizer pm at the reading and writing data when the garbled. There are two solutions: The first approach: in two steps: An address is saved to the database when the garbage problem. In the hibernate.cfg.xml to add two lines: <pro

  • Hibernate MySQL Chinese garbage problem 2010-07-28

    Hibernate MySQL Chinese garbage problem <script type="text/javascript"> document.body.oncopy = function () (if (window.clipboardData) (setTimeout (function () (var text = clipboardData.getData ("text"); if (text & ; & tex

  • 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就

  • DB2 JDBC driver and connection URL Summary 2011-08-23

    According to the JDBC specification, there are four types of JDBC driver architectures: Type 1: JDBC API such as a driver to another data access API mapping to achieve, such as Open Database Connectivity (Open Database Connectivity, ODBC). Such drive

  • windows configure Ruby on Rails and mysql driver 2009-07-10

    This Window users only. Today naughty for a long time, managed to ROR environment and Ruby -Mysql Drive buttoned. Finishing this article, dedicated to a novice user like me, want to help you configure a good early breakfast embark on Ruby Ruby relate

  • 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.

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

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

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

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