1,加入lib包中,在pom中添加
<dependency>
<groupId>com.sss</groupId>
<artifactId>包名</artifactId>
<version>1.60</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/包名.jar</systemPath>
</dependency>
2,打包的配置需要如下,否则打包的jar中没有第三方jar包
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>