Local development of the website is the Intranet, the Internet can not be called, debugging is very troublesome.

So the test callback interface uses ngrok to redirect external requests to the Intranet

Registered ngrokngrok.com/

Select Download after successful registration

The downloaded file is moved to

/usr/local/bin
Copy the code

Unpack the

unzip /usr/local/bin/ngrok.zip
Copy the code

Open the home page and click on the Setup&INstallation reference steps

Execute the token provided on the home page of the command (in the current directory)

./ngrok authtoken 1m03VHHNHMCN62WMdU8pkYZkHJ4_3grMTinStJN6Tx6Rjq2qX
Copy the code

Start (in current directory)

/ngrok HTTP 8090 # Local enabled port serviceCopy the code

Test: mobile data access d371b1c5db0a. Ngrok. IO/testNgrok, whether can into the controller

@GetMapping("/testNgrok") public void testNgrok() { System.out.println("d371b1c5db0a.ngrok.io/testNgrok"); System.out.println(" Intranet penetration test ····"); }Copy the code