Loading... 第一步:引入jar <dependency> <groupId>com.alipay.api</groupId> <artifactId>sdk</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/libs/alipay-sdk-java-3.3.0.jar</systemPath> </dependency> <dependency> <groupId>com.alipay.demo.trade</groupId> <artifactId>trade-sdk</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/libs/alipay-trade-sdk-20161215.jar</systemPath> </dependency> 第二步:打包时将scope为system也打入包中 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.2.5.RELEASE</version> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> Last modification:April 21, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏