# weixin-java-open-demo **Repository Path**: binary/weixin-java-open-demo ## Basic Information - **Project Name**: weixin-java-open-demo - **Description**: 微信开放平台的java demo - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 56 - **Forks**: 56 - **Created**: 2017-12-04 - **Last Updated**: 2025-04-22 ## Categories & Tags **Categories**: sample-code, weixin-dev **Tags**: None ## README ### 本Demo基于Spring Boot构建,实现微信第三方平台开发功能。 #### 本项目为WxJava的Demo演示程序,更多信息请查阅:https://github.com/Wechat-Group/WxJava [![码云Gitee](https://gitee.com/binary/weixin-java-open-demo/badge/star.svg?theme=blue)](https://gitee.com/binary/weixin-java-open-demo) [![Github](http://github-svg-buttons.herokuapp.com/star.svg?user=Wechat-Group&repo=weixin-java-open-demo&style=flat&background=1081C1)](https://github.com/Wechat-Group/weixin-java-open-demo) [![Build Status](https://travis-ci.org/Wechat-Group/weixin-java-open-demo.svg?branch=master)](https://travis-ci.org/Wechat-Group/weixin-java-open-demo) ----------------------- ## 使用步骤: 1. 新手遇到问题,请务必先阅读[【开发文档首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。如还有其他问题请[【在此提问】](https://github.com/Wechat-Group/weixin-java-open-demo/issues),谢谢配合。 1. 配置:修改`/src/main/resources/application.yml` ,根据自己需要填写相关配置(需要注意的是:yml文件内的属性冒号后面的文字之前需要加空格,可参考已有配置,否则属性会设置不成功); 1. 运行Java程序:`com.github.binarywang.demo.wechat.WxOpenDemoApplication`; 1. 配置微信第三方平台中的授权事件接收URL:http://my-domain/notify/receive_ticket 1. 配置微信第三方平台中的公众号消息与事件接收URL http://my-domain/notify/$APPID$/callback 1. 首次启动后需要 等待收到 微信推送的 component_verify_ticket 后才可以使用接口 (在第三方平台创建审核通过后,微信服务器每隔10分钟会向第三方的消息接收地址推送一次component_verify_ticket,用于获取第三方平台接口调用凭据) 1. 浏览器访问:http://my-domain/api/auth/goto_auth_url_show 点击 go 跳转到微信授权页面 扫码授权