mysql database connection pool c3p0 jar package version 8.0 and above configuration

c3p0-config.xml configuration:

<?xml version="1.0" encoding="UTF-8"?>
<c3p0-config>
  <default-config>
    <property name="driverClass">com.mysql.cj.jdbc.Driver</property>
    <property name="jdbcUrl">jdbc:mysql:///shop?characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;useSSL=false</property>
    <property name="user">root</property>
    <property name="password">123456</property>
  </default-config>
</c3p0-config>

 

jar package to use

c3p0-0.9.5.2.jar and mchange-commons-java-0.2.12.jar two packages to match the version will not operate. (Change bug changed Sa hours sorrowful lesson)

 

Guess you like

Origin www.cnblogs.com/xiyoushumu/p/12331552.html