首先下载jar包 创建lib文件夹(与src同级)
pom文件配置
dependency>
<groupId>xxx</groupId>
<artifactId>xxx</artifactId>
<version>1</version>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/xxxx.jar</systemPath>
</dependency>
然后因为 system 默认打包时,是不会加进去的,所以要加以下的配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
加上
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
这样就可以了