1、联调接口https会报证书不认可,故改成http
2、config文件设置redis密码
This commit is contained in:
@@ -51,7 +51,7 @@ public class LoginService {
|
|||||||
ObjectMapper objectMapper = new ObjectMapper();
|
ObjectMapper objectMapper = new ObjectMapper();
|
||||||
OkHttpClient client = new OkHttpClient();
|
OkHttpClient client = new OkHttpClient();
|
||||||
Request request = new Request.Builder()
|
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")
|
// .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials")
|
||||||
.header("Authorization", "Basic TlNBRERAWlguT1JHOk14a1hHZ1ltOUNROUE3TCRSOCNLRW02R1pSeEhwd1c2")
|
.header("Authorization", "Basic TlNBRERAWlguT1JHOk14a1hHZ1ltOUNROUE3TCRSOCNLRW02R1pSeEhwd1c2")
|
||||||
.post(okhttp3.internal.Util.EMPTY_REQUEST)
|
.post(okhttp3.internal.Util.EMPTY_REQUEST)
|
||||||
@@ -76,7 +76,7 @@ public class LoginService {
|
|||||||
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
|
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
|
||||||
.addFormDataPart("sessionData", sessionData).build();
|
.addFormDataPart("sessionData", sessionData).build();
|
||||||
request = new Request.Builder()
|
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")
|
// .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials")
|
||||||
|
|
||||||
.header("Authorization", "Bearer " + accessToken)
|
.header("Authorization", "Bearer " + accessToken)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
server:
|
server:
|
||||||
port: 8081
|
port: 8082
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /api/v1
|
context-path: /api/v1
|
||||||
|
|
||||||
@@ -119,6 +119,7 @@ spring:
|
|||||||
max-idle: 5
|
max-idle: 5
|
||||||
min-idle: 1
|
min-idle: 1
|
||||||
connect-timeout: 1000
|
connect-timeout: 1000
|
||||||
|
password: aiihhbfcsy123!@#
|
||||||
|
|
||||||
mybatis:
|
mybatis:
|
||||||
mapper-locations: classpath:mappers/*
|
mapper-locations: classpath:mappers/*
|
||||||
|
|||||||
Reference in New Issue
Block a user