志在指尖
用双手敲打未来

springboot~引用地址jar包的办法

有些类库我们会放在本地resources目录,当然如果公用仓库里有它,并且是免费的,还是主张直接引证仓库里的,这样在版别更新上和源代码体积上都是有优势的,下面处理引证本地jar的办法。
资源文件
/resources/lib/abc.jar
在pom里增加引证
<dependencies><dependency><groupId>com.bdyh.commongroupId><artifactId>commonartifactId><version>0.0.1version><scope>systemscope><systemPath>${project.basedir}/src/main/resources/lib/aspose-words-15.8.0-jdk16.jarsystemPath>dependency>dependencies>
pom里增加本地文件支持
<build><plugins><plugin><groupId>org.springframework.bootgroupId><artifactId>spring-boot-maven-pluginartifactId><configuration><includeSystemScope>trueincludeSystemScope>configuration>plugin>plugins>build>
这样,本地的jar包就算了引到项目里了。

未经允许不得转载:IT技术网站 » springboot~引用地址jar包的办法
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

志在指尖 用双手敲打未来

登录/注册IT技术大全

热门IT技术

C#基础入门   SQL server数据库   系统SEO学习教程   WordPress小技巧   WordPress插件   脚本与源码下载