IDEA+SpringBoot+Maven 引入三方Jar包

总结一下在IDEA+SpringBoot+Maven环境下引入三方jar方式

项目工程目录下新建目录lib,将需要引入jar包放入lib目录下
IDEA+SpringBoot+Maven 引入三方Jar包

修改pom文件

<dependency>
	<groupId>com.wangzibin.test</groupId><!--可随意-->
	<artifactId>zookeeper</artifactId><!--可随意-->
	<version>3.4.6</version><!--对应jar相应版本(不知道可随意)-->
	<scope>system</scope>
	<systemPath>${pom.basedir}/lib/zookeeper-3.4.6.jar</systemPath>
</dependency>

plugin中设置

  <plugin>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-maven-plugin</artifactId>
       <configuration>
            <fork>true</fork>
			<includeSystemScope>true</includeSystemScope><!--添加此项-->
        </configuration>
   </plugin>

打包完事儿
IDEA+SpringBoot+Maven 引入三方Jar包