Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

微信公众号demo,基于WxJava 和 Spring MVC框架实现,支持多公众号

Notifications You must be signed in to change notification settings

binarywang/weixin-java-mp-multi-demo

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

本项目为WxJava的Demo演示程序

已不建议使用本项目中展示的方式实现多公众号支持,可以参考 springboot的实现:https://github.com/binarywang/weixin-java-mp-demo , 更多其他类型的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

使用步骤:

  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的实现,加入自己的业务逻辑

About

微信公众号demo,基于WxJava 和 Spring MVC框架实现,支持多公众号

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.