Giter Site home page Giter Site logo

1099469599 / weixin-java-mp-demo-springboot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binarywang/weixin-java-mp-demo

0.0 1.0 0.0 3.05 MB

基于Spring Boot 和 WxJava 实现的微信公众号Java后端Demo,支持多公众号

Dockerfile 0.45% Java 95.22% HTML 4.33%

weixin-java-mp-demo-springboot's Introduction

码云Gitee Github Build Status

本Demo基于Spring Boot构建,实现微信公众号后端开发功能。

本项目为WxJava的Demo演示程序,更多Demo请查阅此处

如有问题请【在此提问】,谢谢配合。

使用步骤:

  1. 请注意,本demo为简化代码编译时加入了lombok支持,如果不了解lombok的话,请先学习下相关知识,比如可以阅读此文章
  2. 另外,新手遇到问题,请务必先阅读【开发文档首页】的常见问题部分,可以少走很多弯路,节省不少时间。
  3. 配置:复制 /src/main/resources/application.yml.template 或修改其扩展名生成 application.yml 文件,根据自己需要填写相关配置(需要注意的是:yml文件内的属性冒号后面的文字之前需要加空格,可参考已有配置,否则属性会设置不成功);
  4. 主要配置说明如下:
wx:
  mp:
    configs:
      - appId: 1111 (一个公众号的appid)
        secret: 1111(公众号的appsecret)
        token: 111 (接口配置里的Token值)
        aesKey: 111 (接口配置里的EncodingAESKey值)
      - appId: 2222 (另一个公众号的appid,以下同上)
        secret: 1111
        token: 111
        aesKey: 111
  1. 运行Java程序:WxMpDemoApplication
  2. 配置微信公众号中的接口地址:http://公网可访问域名/wx/portal/xxxxx (注意,xxxxx为对应公众号的appid值);
  3. 根据自己需要修改各个handler的实现,加入自己的业务逻辑。

weixin-java-mp-demo-springboot's People

Contributors

binarywang avatar ettingshausen avatar

Watchers

James Cloos 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.