This article is mainly about how to use spingboot to get WeChat applet Code, openid and sessionke, I think it is very detailed

To get the openID and the sessionkey, we have to get the code, so we call wx.login

In this way, we obtained the WeChat code. Next, we opened the WeChat public platform to find the development Settings of development management, and obtained the APPID and key of our small program

Next, open IDEA and go to the pom.xml configuration file to add the dependency

< the groupId > com. Making. Kevinsawicki < / groupId > < artifactId > HTTP request - < / artifactId > < version > 6.0 < / version >

< / dependency > is the last step the next, in accordance with the written Code can be obtained, including getting WeChat openid and sessionkey, note: the data is returned to the front

For more exciting tutorials and tutorials about applets, please follow the WeChat applets: Radish blog, or scan the QR code below