美文网首页
微信小程序退款时报 DerInputStream.getLeng

微信小程序退款时报 DerInputStream.getLeng

作者: 迈小步 | 来源:发表于2018-10-04 10:40 被阅读0次

    微信发起退款失败

    报错:DerInputStream.getLength(): lengthTag=111, too big.

    解决办法:在pom.xml中添加粗体和斜体的代码部分

    <?xml version="1.0" encoding="UTF-8"?>

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com</groupId>

    <artifactId>super</artifactId>

    <version>0.0.1-SNAPSHOT</version>

    <packaging>war</packaging>

    <name>*****</name>

    <profiles>

    ……

    </profiles>

    <properties>

    ……

    </properties>

    <dependencies>

    ……

    </dependencies>

    <build>

    <resources>

    <!-- 构建时包括资源文件xml文件 -->

    <resource>

    <directory>src/main/java</directory>

    <includes>

    <include>**/*.xml</include>

    </includes>

    </resource>

    <!-- 构建时包括资源文件xml、properties文件 -->

    <resource>

    <directory>${project.basedir}/src/main/resources</directory>

    <filtering>true</filtering>

    <!-- <includes> -->

    <!-- <include>**/*.properties</include> -->

    <!-- <include>**/*.xml</include> -->

    <!-- </includes> -->

    </resource>

    <!-- 设置此文件不过滤 -->

    <resource>

    <directory>src/main/resources</directory>

    <includes>

    <include>**/*.p12</include>

    </includes>

    <filtering>false</filtering>

    </resource>

    </resources>

    <finalName>super</finalName>

    <plugins>

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-compiler-plugin</artifactId>

    <version>3.1</version>

    <configuration>

    <source>1.7</source>

    <target>1.7</target>

    <compilerArguments>

    <endorseddirs>${endorsed.dir}</endorseddirs>

    </compilerArguments>

    </configuration>

    </plugin>

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-war-plugin</artifactId>

    <version>2.3</version>

    <configuration>

    <webXml>src/main/webapp/WEB-INF/web.xml</webXml>

    </configuration>

    </plugin>

    <!-- 不需要转码的文件 -->

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-resources-plugin</artifactId>

    <configuration>

    <encoding>UTF-8</encoding>

    <!-- 过滤后缀为pem、pfx的证书文件 -->

    <nonFilteredFileExtensions>

    <nonFilteredFileExtension>pem</nonFilteredFileExtension>

    <nonFilteredFileExtension>pfx</nonFilteredFileExtension>

    <nonFilteredFileExtension>p12</nonFilteredFileExtension>

    </nonFilteredFileExtensions>

    </configuration>

    </plugin>

    </plugins>

    </build>

    </project>

    相关文章

      网友评论

          本文标题:微信小程序退款时报 DerInputStream.getLeng

          本文链接:https://www.haomeiwen.com/subject/vqhxaftx.html