From 60da2b4ce5e5c46c53b57217dd34e4d0c38f6824 Mon Sep 17 00:00:00 2001 From: PushM <584406942@qq.com> Date: Sat, 11 May 2024 16:25:28 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=81=94=E8=B0=83=E6=8E=A5=E5=8F=A3h?= =?UTF-8?q?ttps=E4=BC=9A=E6=8A=A5=E8=AF=81=E4=B9=A6=E4=B8=8D=E8=AE=A4?= =?UTF-8?q?=E5=8F=AF=EF=BC=8C=E6=95=85=E6=94=B9=E6=88=90http=202=E3=80=81c?= =?UTF-8?q?onfig=E6=96=87=E4=BB=B6=E8=AE=BE=E7=BD=AEredis=E5=AF=86?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../realtime/protection/server/user/login/LoginService.java | 4 ++-- src/main/resources/config/application-test.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/realtime/protection/server/user/login/LoginService.java b/src/main/java/com/realtime/protection/server/user/login/LoginService.java index fe38adc..aadcbfe 100644 --- a/src/main/java/com/realtime/protection/server/user/login/LoginService.java +++ b/src/main/java/com/realtime/protection/server/user/login/LoginService.java @@ -51,7 +51,7 @@ public class LoginService { ObjectMapper objectMapper = new ObjectMapper(); OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() - .url("https://114.243.134.122:10217/passport/accessToken?grant_type=client_credentials") + .url("http://114.243.134.122:10217/passport/accessToken?grant_type=client_credentials") // .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials") .header("Authorization", "Basic TlNBRERAWlguT1JHOk14a1hHZ1ltOUNROUE3TCRSOCNLRW02R1pSeEhwd1c2") .post(okhttp3.internal.Util.EMPTY_REQUEST) @@ -76,7 +76,7 @@ public class LoginService { RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM) .addFormDataPart("sessionData", sessionData).build(); request = new Request.Builder() - .url("https://114.243.134.122:10217/passport/accessApplication") + .url("http://114.243.134.122:10217/passport/accessApplication") // .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials") .header("Authorization", "Bearer " + accessToken) diff --git a/src/main/resources/config/application-test.yml b/src/main/resources/config/application-test.yml index 3ddec41..93d497f 100644 --- a/src/main/resources/config/application-test.yml +++ b/src/main/resources/config/application-test.yml @@ -1,5 +1,5 @@ server: - port: 8081 + port: 8082 servlet: context-path: /api/v1 @@ -119,6 +119,7 @@ spring: max-idle: 5 min-idle: 1 connect-timeout: 1000 + password: aiihhbfcsy123!@# mybatis: mapper-locations: classpath:mappers/*