github项目地址:https://github.com/pingfangushi/screw
不需要下载github项目
有两种方法,一种写代码,一种用maven插件的方法,
那我们当然选择maven插件啦!
步骤一
在pom.xml文件中添加如下代码:
可以根据需求自己修改
<build>
<plugins>
<plugin>
<groupId>cn.smallbun.screw</groupId>
<artifactId>screw-maven-plugin</artifactId>
<!-- 这里的版本号可以用最新的,我现在1.0.4就是最新的 -->
<version>1.0.4</version>
<dependencies>
<!-- HikariCP -->
<dependency>
<groupId>com.zaxxer