Giter Site home page Giter Site logo

springboot-weixin-mp's Introduction

springboot-weixin-mp

SpringBoot整合weixin-java-tools实现微信公众号登录授权

注册 https://ngrok.com 将本地服务端口代理映射到公网,微信服务器端绑定映射到ngrok的域名进行调试

wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip

unzip ngrok-stable-windows-amd64.zip

ngrok authtoken 8TAZn4p5inht6MUKtkPzJ_6Amr8yEUYu6ZBndQ2CCKS

ngrok http 8080

ngrok by @inconshreveable                                                                               (Ctrl+C to quit)

Session Status                online
Account                       冯靖 (Plan: Free)                                                                         Fo
rsion                       2.3.27                                                                                    Re
gion                        United States (us)                                                                        We
b Interface                 http://127.0.0.1:4040
Forwarding                    http://441aca54.ngrok.io -> http://localhost:8080
Forwarding                    https://441aca54.ngrok.io -> http://localhost:8080

Connections                   ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00

启动项目,将本地8080代理到441aca54.ngrok.io的80端口,在微信服务器端设置该域名后访问https://441aca54.ngrok.io/wechat/authorize?returnUrl=http://baidu.com即可获取微信用户信息

参考项目

https://github.com/wechat-group/WxJava

https://github.com/binarywang/weixin-java-mp-demo-springboot

springboot-weixin-mp's People

Contributors

ameizi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.