Steps:

I. Intranet penetrating application for secondary domain name (if there is a server and domain name, skip it)

Ii. Apply for wechat public Platform test number (if you have an authenticated wechat service number, you may skip it)

3. Build a Spring Boot 2.0 project to obtain openId

I. Intranet penetration:

Because it is necessary to directly use the Intranet machine for development and debugging, and the wechat webpage authorization will access the machine during the callback, so it is necessary to directly make an Intranet penetration and access the machine directly from the external network. The approach is as follows: Before purchase, you need to authenticate it. Do not use the free one, because it is too troublesome for free. The charge is not too expensive 9 yuan

Use after purchase: natapp.cn/article/nat…

After use, you will get the url assigned by NatApp, such as xxx.natapp.cn, which can access the development machine.

 

Ii. Application for wechat public Platform test number:

WeChat public platform test application address: mp.weixin.qq.com/debug/cgi-b…

After opening it, click “Login” to get a TWO-DIMENSIONAL code, which can be scanned directly on wechat. I have linked to it, so it is different from you

And this is what you’re supposed to enter

1, 2, 3 are URL, Token, JS respectively. What should we fill in? Don’t worry

Step 3: Start a SpingBoot project in your IDEA compiler and write a Conller that can be accessed on the machine

For example: below my effect

Welcome to follow my wechat public account [Village of apes] to talk about Java interview and my wechat for further communication and learning, wechat mobile search [codeyuanzhicunup] to add if there are related technical questions, welcome to leave a message to discuss, the public account is mainly used for technology sharing, Including often meet test analysis, as well as source code interpretation, micro service framework, technology hot spots.