The pit when the WeChat public account third-party platform obtained componentVerifyTicket

     timestamp = request.getParameter("timestamp");
    nonce   = request.getParameter("nonce");
    signature   = request.getParameter("signature");

    msg_signature = request.getParameter("msg_signature");

There are 2 signatures we want to receive, but msg_signature is what we want, and there is aes parsing failed, you can find it. 2 jar packages are imported into a file in jdk, but it is not found, then you use Should be MyEclipse. This software has its own jdk in a path, you need to replace the jar package inside, if you still report Could not initialize class javax.crypto.SunJCE_b wrong, then you will put the jdk 2 places of this machine and myeclipse The built-in jdk are all innovatively replaced.

Published 20 original articles · Likes2 · Visits 10,000+

Guess you like

Origin blog.csdn.net/qq_28335347/article/details/66970736