From d09366602a491aff218b045e9f79de4285b10444 Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Sat, 31 Dec 2022 09:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/pj/oauth2/SaOAuth2TemplateImpl.java | 2 +- .../cn/dev33/satoken/reactor/model/SaRequestForReactor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sa-token-demo/sa-token-demo-oauth2-server/src/main/java/com/pj/oauth2/SaOAuth2TemplateImpl.java b/sa-token-demo/sa-token-demo-oauth2-server/src/main/java/com/pj/oauth2/SaOAuth2TemplateImpl.java index 8db67008..194c2942 100644 --- a/sa-token-demo/sa-token-demo-oauth2-server/src/main/java/com/pj/oauth2/SaOAuth2TemplateImpl.java +++ b/sa-token-demo/sa-token-demo-oauth2-server/src/main/java/com/pj/oauth2/SaOAuth2TemplateImpl.java @@ -18,7 +18,7 @@ public class SaOAuth2TemplateImpl extends SaOAuth2Template { // 此为模拟数据,真实环境需要从数据库查询 if("1001".equals(clientId)) { return new SaClientModel() - .setClientId("10001") + .setClientId("1001") .setClientSecret("aaaa-bbbb-cccc-dddd-eeee") .setAllowUrl("*") .setContractScope("userinfo") diff --git a/sa-token-starter/sa-token-reactor-spring-boot-starter/src/main/java/cn/dev33/satoken/reactor/model/SaRequestForReactor.java b/sa-token-starter/sa-token-reactor-spring-boot-starter/src/main/java/cn/dev33/satoken/reactor/model/SaRequestForReactor.java index 1e5ad6aa..da98532e 100644 --- a/sa-token-starter/sa-token-reactor-spring-boot-starter/src/main/java/cn/dev33/satoken/reactor/model/SaRequestForReactor.java +++ b/sa-token-starter/sa-token-reactor-spring-boot-starter/src/main/java/cn/dev33/satoken/reactor/model/SaRequestForReactor.java @@ -93,7 +93,7 @@ public class SaRequestForReactor implements SaRequest { */ @Override public String getMethod() { - return request.getMethodValue(); + return request.getMethod().name(); } /**