我在配置c3p0-config.xml时遇到一个问题:
<?xml version="1.0" encoding="UTF-8"?><c3p0-config> <default-config> <property name="driverClass">com.mysql.jdbc.Driver</property> <property name="jdbcUrl">jdbc:mysql://localhost:3306/person?useUnicode=true&characterEncoding=utf8</property> <property name="user">root</property> <property name="password">123321</property> <property name="acquireIncrement">2</property> <property name="initialPoolSize">5</property> <property name="minPoolSize">1</property> <property name="maxPoolSize">5</property> </default-config></c3p0-config>
标红的这一句配置出错!!
解决办法:
<property name="jdbcUrl">jdbc:mysql://localhost:3306/person?useUnicode=true&characterEncoding=utf8</property>
改为:
<property name="jdbcUrl">jdbc:mysql://localhost:3306/person?useUnicode=true&characterEncoding=utf8</property>
转载于:https://www.cnblogs.com/neuhao/p/7243849.html
相关资源:数据结构—成绩单生成器