Java微服务项目引入第三方jar包
方式一、通过pom文件,可以部署到服务器
1.把jar包放到项目lib路径下
![在这里插入图片描述](https://img-blog.csdnimg.cn/c8a752ae95d34696a8cef20ea1d7b73a.png)
2.复制jar包路径,在pom文件中引入
jar包路径
![在这里插入图片描述](https://img-blog.csdnimg.cn/5138486032e34e1e9e49841dd4967794.png)
pom文件添加依赖
![![在这里插入图片描述](https://img-blog.csdnimg.cn/a84d47f2e9fd48debcb0024820ecba39.png](https://img-blog.csdnimg.cn/1891ae597c104624ab50877b728c04fe.png)
3.配置系统范围为true,否则会报错找不到第三方jar包
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
![在这里插入图片描述](https://img-blog.csdnimg.cn/93e6637927aa43afa8c0a2fdfee592f9.png)
方式二、在idea工具中引入jar包
1.把jar包放到项目路径下
2.右击选择
![在这里插入在这里插入图片描述
图片描述](https://img-blog.csdnimg.cn/3a45d0e2d07e425eaa15590edb77aae6.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/69855a5be19c46dea47f4606490c2bca.png)
3.找到放jar的路径
![在这里插入图片描述](https://img-blog.csdnimg.cn/cbe89c41b0ae4de0a37db78a76d640be.png)
4.选中jar包,点击OK,导入成功jar包