Giter Site home page Giter Site logo

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

Build Status

本项目为WxJava的Demo演示程序

已不建议使用本项目中展示的方式实现多公众号支持,可以参考 springboot的实现:https://github.com/binarywang/weixin-java-mp-demo-springboot , 更多其他类型的Demo请查阅:https://github.com/Wechat-Group/WxJava

本Demo使用Spring MVC 框架实现微信公众号开发功能,支持多公众号。

  1. 如果想使用更多公众号,请复制相关配置文件,修改spring配置文件添加相应配置,同时还需要增加相应的controller和service,具体可以参考已有源码进行操作。
  2. 如果只是使用一个公众号,建议使用另外的项目: https://github.com/binarywang/weixin-java-mp-demo-springmvc 或者 https://github.com/binarywang/weixin-java-mp-demo-springboot

使用步骤:

  1. 配置:
    1. 复制/src/main/resources/wx-gzh1.properties.template 生成wx-gzh1.properties 文件,填写相关配置;
    2. 复制/src/main/resources/wx-gzh2.properties.template 生成wx-gzh2.properties 文件,填写相关配置。
  2. 使用maven运行demo程序: mvn jetty:run 或者自己打 war包发布到tomcat运行;
  3. 配置微信公众号中的接口地址:http://xxx/api/gzh1/portalhttp://xxx/api/gzh2/portal (注意XXX需要是外网可访问的域名,需要符合微信官方的要求)
  4. 根据自己需要修改各个handler的实现,加入自己的业务逻辑

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

Contributors

binarywang avatar dependabot[bot] 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.