<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/lib/commons-logging-1.1.1.jar</systemPath>
</dependency>
<dependency>
<groupId>alipaySdk</groupId>
<artifactId>alipaySdk</artifactId>
<version>20161222</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/lib/alipaySdk-20161222.jar</systemPath>
</dependency>
<dependency>
<groupId>alipay-sdk</groupId>
<artifactId>alipay-sdk</artifactId>
<version>java20170324180803</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/lib/alipay-sdk-java20170324180803.jar</systemPath>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>src\main\webapp\WEB-INF\lib</extdirs>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
----或
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<!-- <extdirs>src\main\webapp\WEB-INF\lib</extdirs> -->
<arg>-verbose</arg>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:deprecation</arg>
<arg>-bootclasspath</arg>
<arg>${env.JAVA_HOME}/jre/lib/rt.jar</arg>
<arg>-extdirs</arg>
<arg>${project.basedir}/src/main/webapp/WEB-INF/lib</arg>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>

本文介绍了一个包含支付宝支付接口配置的示例项目。该项目使用了多个依赖项,包括commons-logging和不同版本的Alipay SDK。此外,还展示了如何通过spring-boot-maven-plugin配置Java编译参数,以确保项目的正确构建。
814

被折叠的 条评论
为什么被折叠?



