开放平台OAuth2.0回调接口开发与实现.pdfVIP

  • 0
  • 0
  • 约2.11万字
  • 约 16页
  • 2026-09-16 发布于北京
  • 举报

一、准备工作

1、全局配置的跳转路径

_

1#开放平台重定向URL2

wx.打开.重定向URL=http://回调地址/

api/ucenter/wx/callback

2、将当前项目的启动端修改为8160

三、测试回调是否可用

在WxApiController中添加方法

1@GetMapping(回调接口)2publicString回调处理(Stringcode,String

state,HttpSessionsession){34//得到临时票据代码5

System.out.println(码:=+code);6System.out.println(状态参数:

=+state);7}

二、开发

1、添加依赖

1!--httpclient--2依赖3groupId

org.apache.ht

文档评论(0)

1亿VIP精品文档

相关文档