{"id":15024524,"url":"https://github.com/hippoom/wechat-mp-starter","last_synced_at":"2025-04-12T06:36:06.328Z","repository":{"id":57719972,"uuid":"95419990","full_name":"Hippoom/wechat-mp-starter","owner":"Hippoom","description":"Custom spring boot starter for WeChat MP application","archived":false,"fork":false,"pushed_at":"2017-07-04T04:35:39.000Z","size":144,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:01:39.674Z","etag":null,"topics":["spring-boot","spring-boot-starter","wechat","wechat-app","wechat-framework","wechat-official-account","wechat-sdk"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hippoom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-26T07:24:47.000Z","updated_at":"2019-01-11T00:27:57.000Z","dependencies_parsed_at":"2022-09-26T21:41:13.396Z","dependency_job_id":null,"html_url":"https://github.com/Hippoom/wechat-mp-starter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hippoom%2Fwechat-mp-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hippoom%2Fwechat-mp-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hippoom%2Fwechat-mp-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hippoom%2Fwechat-mp-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hippoom","download_url":"https://codeload.github.com/Hippoom/wechat-mp-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530535,"owners_count":21119589,"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":["spring-boot","spring-boot-starter","wechat","wechat-app","wechat-framework","wechat-official-account","wechat-sdk"],"created_at":"2024-09-24T20:00:30.151Z","updated_at":"2025-04-12T06:36:06.295Z","avatar_url":"https://github.com/Hippoom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat-mp-starter[![Build Status](https://travis-ci.org/Hippoom/wechat-mp-starter.svg?branch=master)](https://travis-ci.org/Hippoom/wechat-mp-starter)\nCustom spring boot starter for WeChat MP application\n\n\n\n## Latest Release\n\n**0.3.1**\n\nYou can download the binary from [Maven Central Repository](http://mvnrepository.com/artifact/com.github.hippoom/wechat-mp-starter):\n\n- Gradle\n\n```groovy\n    compile 'com.github.hippoom:wechat-mp-starter:0.3.1'\n    testCompile 'com.github.hippoom:wechat-mp-starter-test:0.3.1'\n```\n\n- Maven\n\n```xml\n    \u003cdependency\u003e\n    \t\u003cgroupId\u003ecom.github.hippoom\u003c/groupId\u003e\n    \t\u003cartifactId\u003ewechat-mp-starter\u003c/artifactId\u003e\n    \t\u003cversion\u003e0.3.1\u003c/version\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n    \t\u003cgroupId\u003ecom.github.hippoom\u003c/groupId\u003e\n    \t\u003cartifactId\u003ewechat-mp-starter-test\u003c/artifactId\u003e\n    \t\u003cversion\u003e0.3.1\u003c/version\u003e\n      \t\u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n```\n\nYou can find release notes [here](https://github.com/Hippoom/wechat-mp-starter/wiki/release-notes).\n\n## Why\n\n\u003e WeChat supports users who wish to register as an official account, which enables them to push feeds to subscribers, interact with subscribers and provide them with services. There are three types of official accounts: service account, subscription account and enterprise account. Once users as individuals or organizations set up a type of account, they cannot change it to another type. By the end of 2014, the number of WeChat official accounts had reached 8 million.[[27\\]](https://en.wikipedia.org/wiki/WeChat#cite_note-27) Official accounts of organizations can apply for verified (at cost of 300 RMB), official, public accounts. Official accounts can be used as a platform for services such as hospital pre-registrations,[[28\\]](https://en.wikipedia.org/wiki/WeChat#cite_note-28) visa renewal[[29\\]](https://en.wikipedia.org/wiki/WeChat#cite_note-29) or credit card service.[[30\\]](https://en.wikipedia.org/wiki/WeChat#cite_note-30)       \n\u003e\n\u003e ​\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tquoted from [wikipedia](https://en.wikipedia.org/wiki/WeChat)\n\n\n\nWeChat provides [APIs and docs](http://admin.wechat.com/wiki/index.php?title=Getting_Started) to help you develop official account web applications. Although the APIs is easy to integrate with, it is a good idea to leverage the battle tested libraries provided by community, [weixin-java-tools](https://github.com/wechat-group/weixin-java-tools), [weixin4j](https://github.com/foxinmy/weixin4j), just to name a few. You may also want to try our starter to auto configure the components  if you happen to use [spring-boot](https://projects.spring.io/spring-boot/).\n\n\n\n## Quick Start\n\n`@EnableWeChatMpApplication` will do the tricks.\n\n```java\nimport com.github.hippoom.wechat.mp.autoconfigure.annotation.EnableWeChatMpApplication;\nimport me.chanjar.weixin.mp.api.WxMpUserService;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n@EnableWeChatMpApplication\n@SpringBootApplication\npublic class Application {\n  \n    @Autowired\n    private WxMpService wxMpService\n\n    public static void main(String[] args) {\n        SpringApplication.run(Application.class, args);\n    }\n}\n```\n\nYou can setup your WeChat MP appId and secret in the `application{-profile}.properties`or`application{-profile}.yaml`\n\n```yaml\nwechat:\n  mp:\n    appId: your-app-id\n    appSecret: your-app-secret\n```\n\nYou can find detailed usage [here](https://github.com/Hippoom/wechat-mp-starter/wiki) and a demo application [here](https://github.com/Hippoom/wechat-mp-starter/tree/master/wechat-mp-starter-demo).\n\n\n\n## Contributing\n\nAny suggestion and pull request is welcome.\n\n\n\n## License\n\nLicensed under MIT License (the \"License\"); You may obtain a copy of the License in the LICENSE file, or at [here](https://github.com/Hippoom/wechat-mp-starter/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhippoom%2Fwechat-mp-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhippoom%2Fwechat-mp-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhippoom%2Fwechat-mp-starter/lists"}