timshaw9791 / wechat-api

Demo Project for Spring Security OAuth 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

初始配置

  1. 登录GitHub,进入Settings -> Developer settings -> OAuth Apps,创建OAuth App;获取Client ID和Client Secret 替换application.yml github配置中的client-id和client-secret。
  2. 注册微信开放平台微信公众平台帐号,进入开发 -> 基本配置,获取AppID和AppSecret替换application.yml weixin配置中的client-id和client-secret; 根据您使用的域名修改redirect-uri。

启动应用

启动WeChatApplication,访问 http://yourhost/heroes 则会自动跳转到登录页面,登录成功后会输出hero信息。 如使用微信公众平台帐号,则只能在微信客户端或微信开发者工具中访问页面。

About

Demo Project for Spring Security OAuth 2.0

License:Apache License 2.0


Languages

Language:Java 100.0%