spring boot引入第三方jar
程序员文章站
2024-01-28 11:33:28
...
在pom.xml文件中加入
groupId、artifactId、version、scope都可以随意填写,但不要重复
systemPath为jar路径
<dependency>
<groupId>com.httpcoren</groupId>
<artifactId>httpcore-nio</artifactId>
<version>4.4.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/httpcore-nio-4.4.1.jar</systemPath>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
上一篇: js格式化时间