1、联调接口https会报证书不认可,故改成http

2、config文件设置redis密码
This commit is contained in:
PushM
2024-05-11 16:25:28 +08:00
parent 8c79cf3e25
commit 60da2b4ce5
2 changed files with 4 additions and 3 deletions

View File

@@ -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)

View File

@@ -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/*