本文以导入支付宝alipay的sdk为例
<!-- 支付宝支付 -->
<dependency>
<groupId>com.alipay</groupId>
<artifactId>alipay-sdk</artifactId>
<version>20170829142630</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/alipay-sdk-java20170829142630.jar</systemPath>
</dependency>
<scope>system</scope>
是设置类型,${project.basedir}
是Maven内置变量,可取到项目根路径
Spring Boot项目在pom.xml
的build >plugins
中添加
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有