GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - binarywang/weixin-java-mp-multi-demo: 微信公众号demo,基于WxJava 和 Spring MVC框架实现,支持多公众号

BranchesTags
Open more actions menu

Latest commit

 

History

75 Commits
75 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main
src/main
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
commit.sh
commit.sh
 
 
pom.xml
pom.xml
 
 

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/portal 或 http://xxx/api/gzh2/portal (注意XXX需要是外网可访问的域名,需要符合微信官方的要求)
  4. 根据自己需要修改各个handler的实现,加入自己的业务逻辑

About

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

Topics

javaweixin

Resources

Readme
Activity

Stars

114 stars

Watchers

12 watching

Forks

75 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.