基於jsp+servlet的大學教課書商城
(後來有導入Spring IOC,詳細可參考下面系統架構)
註: 此專案並非一開始就使用版本控制
<?xml version="1.0" encoding="UTF-8"?>
<c3p0-config>
<!-- 默認配置,只可以出現一次 -->
<default-config>
<property name="driverClass">org.mariadb.jdbc.Driver</property>
<property name="jdbcUrl">
<![CDATA[jdbc:mariadb://localhost:3306/bookshop?useUnicode=true&characterEncoding=UTF-8&useSSL=false]]>
</property>
<property name="user">root</property>
<property name="password">root</property>
</default-config>
</c3p0-config>
c3p0-config.xml
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.1.2</version>
</dependency>
pox.xml (part)
<?xml version="1.0" encoding="UTF-8"?>
<c3p0-config>
<!-- 默認配置,只可以出現一次 -->
<default-config>
<property name="driverClass">com.mysql.jdbc.Driver</property>
<property name="jdbcUrl">
<![CDATA[jdbc:mysql://localhost:3306/bookshop?useUnicode=true&characterEncoding=UTF-8&useSSL=false]]>
</property>
<property name="user">root</property>
<property name="password">root</property>
</default-config>
</c3p0-config>
c3p0-config.xml
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.4</version>
</dependency>
pox.xml (part)