{"id":21452169,"url":"https://github.com/binarywang/weixin-java-mp-multi-demo","last_synced_at":"2025-05-06T21:29:28.966Z","repository":{"id":12490851,"uuid":"71912615","full_name":"binarywang/weixin-java-mp-multi-demo","owner":"binarywang","description":"微信公众号demo，基于WxJava 和 Spring MVC框架实现，支持多公众号","archived":false,"fork":false,"pushed_at":"2025-01-16T09:03:42.000Z","size":86,"stargazers_count":108,"open_issues_count":0,"forks_count":75,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-27T13:38:46.787Z","etag":null,"topics":["java","weixin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binarywang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-25T15:42:46.000Z","updated_at":"2025-04-15T09:27:34.000Z","dependencies_parsed_at":"2023-12-19T11:06:01.632Z","dependency_job_id":"e347fee2-3fcd-40be-8948-d2fc07584abf","html_url":"https://github.com/binarywang/weixin-java-mp-multi-demo","commit_stats":{"total_commits":48,"total_committers":4,"mean_commits":12.0,"dds":0.5208333333333333,"last_synced_commit":"1c95002eea05cdd636275026e48fcf98fe429835"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-multi-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-multi-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-multi-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-multi-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binarywang","download_url":"https://codeload.github.com/binarywang/weixin-java-mp-multi-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252743519,"owners_count":21797455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","weixin"],"created_at":"2024-11-23T04:28:02.722Z","updated_at":"2025-05-06T21:29:28.931Z","avatar_url":"https://github.com/binarywang.png","language":"Java","readme":"[![Build Status](https://travis-ci.org/binarywang/weixin-java-mp-multi-demo.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-mp-multi-demo)\n### 本项目为WxJava的Demo演示程序\n已不建议使用本项目中展示的方式实现多公众号支持，可以参考 springboot的实现：https://github.com/binarywang/weixin-java-mp-demo ，\n更多其他类型的Demo请查阅：https://github.com/Wechat-Group/WxJava\n\n#### 本Demo使用Spring MVC 框架实现微信公众号开发功能，支持多公众号。\n1. 如果想使用更多公众号，请复制相关配置文件，修改spring配置文件添加相应配置，同时还需要增加相应的controller和service，具体可以参考已有源码进行操作。\n1. 如果只是使用一个公众号，建议使用另外的项目：\nhttps://github.com/binarywang/weixin-java-mp-demo-springmvc 或者 https://github.com/binarywang/weixin-java-mp-demo 。\n\n## 使用步骤：\n1. 配置:\n\t1. 复制/src/main/resources/wx-gzh1.properties.template 生成wx-gzh1.properties 文件，填写相关配置;\n\t2. 复制/src/main/resources/wx-gzh2.properties.template 生成wx-gzh2.properties 文件，填写相关配置。\t\t\n1. 使用maven运行demo程序: `mvn jetty:run`  或者自己打 war包发布到tomcat运行；\n1. 配置微信公众号中的接口地址：http://xxx/api/gzh1/portal 或 http://xxx/api/gzh2/portal （注意XXX需要是外网可访问的域名，需要符合微信官方的要求）\n1. 根据自己需要修改各个handler的实现，加入自己的业务逻辑\n\t\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarywang%2Fweixin-java-mp-multi-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarywang%2Fweixin-java-mp-multi-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarywang%2Fweixin-java-mp-multi-demo/lists"}