2020

2020-01-01

今天开发今日头条-穿山甲SDK集成的时候,遇到各种妙名其秒的问题,后来发现是不同版本的SDK文件混用了,特别是so文件。还有aar文件。

2020-01-06

新检出的工程,怎么设置都是用1.5去编译的,后来在pom.xml里加了

<build> 
  <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> 
      </configuration> 
    </plugin> 
  </plugins> 
</build>

就可以了。

后来maven install可以了,但web运行不行,我就直接手动拖缺的文件,让它能运行出来。

2020-01-12

好神奇哦,用Eclipse的右击菜单的Run As -> Maven Install总是失败,但是打开工程的终端,执行mvn install 却可以成功。搞不懂。

2020-01-14

原来jsp也有65k限制。

The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit

2020-01-17

$("#root").html();并不能清空子元素,而要用$("#root").html("");

2020-03-17

17-Mar-2020 14:43:22.731 SEVERE [http-nio-9011-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/API_UBP] threw exception [java.lang.ClassNotFoundException: org.apache.jsp.exception._500_jsp] with root cause
    java.lang.ClassNotFoundException: org.apache.jsp.exception._500_jsp
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)

找不到jsp,但是我重启一下tomcat就好了。。。

2020-03-28

如何在Eclipse导一个不认可的工程:

File -> Import -> Projects from Folder or Archive

2020-04-02

在苹果手机上,主页用的https,但是其中有一个js用的http,它就不识别了。。。。

2020-04-06

右击pom.xml -> Run As -> Maven install 

有时候会编译失败,报:

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error

,然后再重复一次,又成功了。

2020-04-06

企业微信不显示二维码的解决办法。

卸载重装也不显示。不知道是不是因为最近我合并分区的原因,还是说我改了盘符,把E盘改成了D盘。

C:UsersAdministratorDocuments目录下出现了很多

 这些有跳转符的,基本上是不可访问的。它指向是当前地址。

后来我触类旁敲,发现微信目录WXWork下也有这些转向符,

我就把WXWork改成WXWork2,重新打包企业微信,发现它创了一个WXWork,里面有一个Global目录,并且可以显示二维码了。

总结如下:

如果你的WXWork的Global也是一个不可跳转的链接,也把它删了,就可以显示二维码了。

2020-04-12

Connection closed by foreign host.

Disconnected from remote host(服务器) at 21:33:33.

有可能是服务器只允许指定IP登录。

2020-04-29

原来ftp命令不支持绝对路径,put /apps/xxx.txt不生效,而要用cd /apps 之后,登录ftp,put xxx.txt

2020-06-18

支付宝续包月不能设置external_agreement_no参数【或者说我设置的方式不对】。如果设了,就不能正常签约。

spring mvc 默认是支持com.fasterxml.jackson.annotation.JsonProperty的?

2020-07-21

https://pay.weixin.qq.com/wiki/doc/api/pap.php?chapter=18_5&index=2

所来不能传nonce_str的,传了系统也不认这个参数,最后就成了[SIGNERROR]。

主要是后来的微信sdk pay 默认就自己插入nonce_str,囧。

2020-07-30

报错:api unauthorized rid: 5f228c59-0b45dc6f-32233e9a

原来是appId不对,自己配的是A服务号上,代码里填的是B服务号。

2020-08-05

HTTP Status 400 -  The request sent by the client was syntactically incorrect.

原来是参数顺序问题。错误的方式是:

public Response sync(@Valid @RequestBody HuaweiPaySyncRequest request, HttpServletRequest req, BindingResult result)

正确的:

public Response sync(@Valid @RequestBody HuaweiPaySyncRequest request, BindingResult result, HttpServletRequest req)

原文地址:https://www.cnblogs.com/angelshelter/p/12129960.html