一、准备工作
<dependency>
<groupId>lan</groupId>
<artifactId>lan</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/xxx.jar
</systemPath>
</dependency>
把自己的xxx.jar放进lib ,在pom文件里面还要加下面这行
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.xxx.BootApplication</mainClass>
<includeSystemScope>true</includeSystemScope><!-- 把第三方jar包加进去 -->
</configuration>
加上述这一句即可。
二、使用
导入进去就可以正常使用了。