{"id":13487177,"url":"https://github.com/binarywang/weixin-java-mp-demo","last_synced_at":"2025-05-14T04:07:58.915Z","repository":{"id":37676144,"uuid":"72082404","full_name":"binarywang/weixin-java-mp-demo","owner":"binarywang","description":"基于Spring Boot 和 WxJava 实现的微信公众号Java后端Demo，支持多公众号","archived":false,"fork":false,"pushed_at":"2025-01-03T15:12:49.000Z","size":3149,"stargazers_count":1970,"open_issues_count":18,"forks_count":984,"subscribers_count":103,"default_branch":"master","last_synced_at":"2025-05-11T04:29:41.778Z","etag":null,"topics":["demo-spring-boot","java","spring-boot","wechat","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":".github/FUNDING.yml","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},"funding":{"github":["binarywang"],"custom":"https://github.com/Wechat-Group/WxJava/blob/master/images/qrcodes/wepay.jpg?raw=true"}},"created_at":"2016-10-27T07:26:17.000Z","updated_at":"2025-05-08T09:20:09.000Z","dependencies_parsed_at":"2022-07-08T07:42:45.090Z","dependency_job_id":"a6765449-b1ca-4341-a646-e49366ad8c0b","html_url":"https://github.com/binarywang/weixin-java-mp-demo","commit_stats":{"total_commits":72,"total_committers":5,"mean_commits":14.4,"dds":0.2777777777777778,"last_synced_commit":"1d79896722ee989380d46d9e3074f21f1056b8b6"},"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-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binarywang%2Fweixin-java-mp-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binarywang","download_url":"https://codeload.github.com/binarywang/weixin-java-mp-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253764444,"owners_count":21960583,"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":["demo-spring-boot","java","spring-boot","wechat","weixin"],"created_at":"2024-07-31T18:00:56.284Z","updated_at":"2025-05-14T04:07:53.896Z","avatar_url":"https://github.com/binarywang.png","language":"Java","readme":"[![码云Gitee](https://gitee.com/binary/weixin-java-mp-demo-springboot/badge/star.svg?theme=blue)](https://gitee.com/binary/weixin-java-mp-demo-springboot)\n[![Github](http://github-svg-buttons.herokuapp.com/star.svg?user=binarywang\u0026repo=weixin-java-mp-demo-springboot\u0026style=flat\u0026background=1081C1)](https://github.com/binarywang/weixin-java-mp-demo-springboot)\n[![Build Status](https://travis-ci.org/binarywang/weixin-java-mp-demo-springboot.svg?branch=master)](https://travis-ci.org/binarywang/weixin-java-mp-demo-springboot)\n-----------------------\n\n### 本Demo基于Spring Boot构建，实现微信公众号后端开发功能。\n### 本项目为WxJava的Demo演示程序，更多Demo请[查阅此处](https://github.com/Wechat-Group/WxJava/blob/master/demo.md)。\n#### 如有问题请[【在此提问】](https://github.com/binarywang/weixin-java-mp-demo-springboot/issues)，谢谢配合。\n\n\n\u003ctable align=\"center\" cellspacing=\"0\" cellpadding=\"0\"\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\t\t\t\u003ctd align=\"left\" valign=\"middle\"\u003e\n        \u003ca href=\"http://mp.weixin.qq.com/mp/homepage?__biz=MzI3MzAwMzk4OA==\u0026hid=1\u0026sn=f31af3bf562b116b061c9ab4edf70b61\u0026scene=18#wechat_redirect\" target=\"_blank\"\u003e\n\t\t\t\t  \u003cimg height=\"120\" src=\"https://gitee.com/binary/weixin-java-tools/raw/develop/images/qrcodes/mp.png\"\u003e\n        \u003c/a\u003e\n\t\t\t\u003c/td\u003e\n\t\t\t\u003ctd align=\"center\" valign=\"middle\"\u003e\n\t\t\t\t\u003ca href=\"https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=7makzf5h\" target=\"_blank\"\u003e\n\t\t\t\t\t\u003cimg height=\"120\" src=\"https://gitee.com/binary/weixin-java-tools/raw/develop/images/banners/aliyun.jpg\"\u003e\n\t\t\t\t\u003c/a\u003e\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\n## 使用步骤：\n1. 请注意，本demo为简化代码编译时加入了lombok支持，如果不了解lombok的话，请先学习下相关知识，比如可以阅读[此文章](https://mp.weixin.qq.com/s/cUc-bUcprycADfNepnSwZQ)；\n1. 另外，新手遇到问题，请务必先阅读[【开发文档首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分，可以少走很多弯路，节省不少时间。\n1. 配置：复制 `/src/main/resources/application.yml.template` 或修改其扩展名生成 `application.yml` 文件，根据自己需要填写相关配置（需要注意的是：yml文件内的属性冒号后面的文字之前需要加空格，可参考已有配置，否则属性会设置不成功）；\n2. 主要配置说明如下：\n```\nwx:\n  mp:\n    useRedis: false\n    redisConfig:\n      host: 127.0.0.1\n      port: 6379\n      timeout: 2000\n    configs:\n      - appId: 1111 # 第一个公众号的appid\n        secret: 1111 # 公众号的appsecret\n        token: 111 # 接口配置里的Token值\n        aesKey: 111 # 接口配置里的EncodingAESKey值\n      - appId: 2222 # 第二个公众号的appid，以下同上\n        secret: 1111\n        token: 111\n        aesKey: 111\n\n```\n3. 运行Java程序：`WxMpDemoApplication`；\n4. 配置微信公众号中的接口地址：http://公网可访问域名/wx/portal/xxxxx （注意，xxxxx为对应公众号的appid值）；\n5. 根据自己需要修改各个handler的实现，加入自己的业务逻辑。\n\t\n","funding_links":["https://github.com/sponsors/binarywang","https://github.com/Wechat-Group/WxJava/blob/master/images/qrcodes/wepay.jpg?raw=true"],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarywang%2Fweixin-java-mp-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarywang%2Fweixin-java-mp-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarywang%2Fweixin-java-mp-demo/lists"}