使用c3p0连接池连接数据库时,使用的xml配置文件
根据往常的格式直接copy报错,因为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/epoint01?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false</property><property name="user">root</property><property name="password">Gepoint</property><property name="initialPoolSize">5</property><property name="maxPoolSize">20</property></default-config></c3p0-config>