第一步:引入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 21st, 2020 at 02:57 pm
如果觉得我的文章对你有用,请随意赞赏