如果使用 Maven 管理项目依赖,则直接在 pom.xml 文件中添加如下依赖:
<!-- https://mvnrepository.com/artifact/c3p0/c3p0 -->
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
</dependency>如果使用 Gradle 管理项目依赖,则直接在 build.gradle 文件中添加如下依赖:
// https://mvnrepository.com/artifact/c3p0/c3p0
implementation group: 'c3p0', name: 'c3p0', version: '0.9.1.2'如果使用 lvy 管理项目依赖,则直接在 ivy.xml 文件中添加如下依赖:
<!-- https://mvnrepository.com/artifact/c3p0/c3p0 -->
<dependency org="c3p0" name="c3p0" rev="0.9.1.2"/>下面是一个简单示例:
<ivy-module version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="trendy" module="poc_test"/>
<!-- 引入的依赖 jar -->
<dependencies>
<dependency org="trendy" name="trendy-framework" rev="0.1.14" transitive="false"/>
<dependency org="trendy" name="trendy-admin-client" rev="0.1.1" transitive="false"/>
<dependency org="trendy" name="trendy-system-client" rev="0.1.9" transitive="false"/>
</dependencies>
</ivy-module>