下面介绍了 Maven、Gradle、lvy 和 Grape 的 Druid 依赖,读者根据自己项目选择。
将下面依赖信息添加到项目的 pom.xml 文件中:
<!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.15</version> </dependency>
将下面依赖信息添加到项目的 build.gradle 文件中:
// https://mvnrepository.com/artifact/com.alibaba/druid implementation group: 'com.alibaba', name: 'druid', version: '1.2.15'
<!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <dependency org="com.alibaba" name="druid" rev="1.2.15"/>
// https://mvnrepository.com/artifact/com.alibaba/druid @Grapes( @Grab(group='com.alibaba', module='druid', version='1.2.15') )