c3p0-config.xml

佐手、 提交于 2019-12-30 19:53:11

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

c3p0-config.xml

<?xml version="1.0" encoding="UTF-8"?>

<c3p0-config>

  <named-config name="mvcapp"> 
       
       <property name="user">root</property>
       <property name="password">123456</property>
       <property name="driverClass">com.mysql.cj.jdbc.Driver</property>
       <property name="jdbcUrl">jdbc:mysql:///atguigu?serverTimezone=GMT%2B8&amp;characterEncoding=utf8&amp;useSSL=false</property>
   
    <property name="acquireIncrement">5</property>
    <property name="initialPoolSize">10</property>
    <property name="minPoolSize">10</property>
    <property name="maxPoolSize">50</property>

    <property name="maxStatements">20</property> 
    <property name="maxStatementsPerConnection">5</property>
   </named-config>
    
</c3p0-config>

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!