Commit 05b75a64 authored by 赵灿灿's avatar 赵灿灿

修改配置信息

parent 3d166063
Pipeline #21034 passed with stages
in 3 minutes and 4 seconds
...@@ -56,13 +56,13 @@ public class DecodeJWTToken { ...@@ -56,13 +56,13 @@ public class DecodeJWTToken {
public String getUserName(HttpServletRequest request) { public String getUserName(HttpServletRequest request) {
String userId = getUserIdByDecodeToken(request); String userName = getUserIdByDecodeToken(request);
return userId; return userName;
} }
public String getUserIdByDecodeToken(HttpServletRequest request) { public String getUserIdByDecodeToken(HttpServletRequest request) {
String userId = null; String userName = null;
Cookie[] cookies = request.getCookies(); Cookie[] cookies = request.getCookies();
logger.info("cookie = " +cookies ); logger.info("cookie = " +cookies );
if (cookies != null && cookies.length != 0) { if (cookies != null && cookies.length != 0) {
...@@ -77,15 +77,15 @@ public class DecodeJWTToken { ...@@ -77,15 +77,15 @@ public class DecodeJWTToken {
String token = pmsWebCookie.getValue(); String token = pmsWebCookie.getValue();
logger.info(" pms-web cookie " + token); logger.info(" pms-web cookie " + token);
DecodedJWT decodedJWT = verifySessionToken(token, signSecret); DecodedJWT decodedJWT = verifySessionToken(token, signSecret);
userId = decodedJWT.getClaim("accountName").asString(); userName = decodedJWT.getClaim("accountName").asString();
} else if (ObSSOCookie != null) { } else if (ObSSOCookie != null) {
String token = ObSSOCookie.getValue(); String token = ObSSOCookie.getValue();
logger.info(" ObSSOCookie cookie " + token); logger.info(" ObSSOCookie cookie " + token);
User user = getUserByToken(token); User user = getUserByToken(token);
// JsonNode result = restTemplateUtils.postForLinkedMultiValueMap(keyValueStoreService.queryValueByKey(StoreKeys.PMS_API_URL), param); // JsonNode result = restTemplateUtils.postForLinkedMultiValueMap(keyValueStoreService.queryValueByKey(StoreKeys.PMS_API_URL), param);
userId = user.getId(); userName = user.getUsername();
} }
return userId; return userName;
} else { } else {
return null; return null;
} }
......
...@@ -46,10 +46,10 @@ spring: ...@@ -46,10 +46,10 @@ spring:
datasource: datasource:
driver-class-name: com.alipay.oceanbase.jdbc.Driver driver-class-name: com.alipay.oceanbase.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:oceanbase://10.32.166.11:2883,10.32.166.12:2883,10.32.166.13:2883,10.32.166.14:2883,10.32.166.15:2883,10.32.166.16:2883/JSXJY05?continueBatchOnError=false&allowMultiQueries=true&rewriteBatchedStatements=true&loadBalanceStrategy=RANDOM url: jdbc:oceanbase://10.32.166.11:2883,10.32.166.12:2883,10.32.166.13:2883,10.32.166.14:2883,10.32.166.15:2883,10.32.166.16:2883/JSXJY10?continueBatchOnError=false&allowMultiQueries=true&rewriteBatchedStatements=true&loadBalanceStrategy=RANDOM
#格式: 用户名@租户名#集群名 #格式: 用户名@租户名#集群名
username: JSXJY05@epmsdb#OAFCDB1 username: JSXJY10@epmsdb#OAFCDB1
password: o556723ss4QisC6 password: KMp6G9uKN6b7w5W
# driver-class-name: oracle.jdbc.driver.OracleDriver # driver-class-name: oracle.jdbc.driver.OracleDriver
# url: jdbc:oracle:thin:@//10.32.164.15:1521/pmsdb # url: jdbc:oracle:thin:@//10.32.164.15:1521/pmsdb
# username: dbworkflow # username: dbworkflow
......
...@@ -30,10 +30,10 @@ spring: ...@@ -30,10 +30,10 @@ spring:
#OB #OB
driver-class-name: com.alipay.oceanbase.jdbc.Driver driver-class-name: com.alipay.oceanbase.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:oceanbase://10.33.240.206:2883,10.33.240.207:2883/PMS_dispatchassistant?rewriteBatchedStatements=true url: jdbc:oceanbase://10.33.240.206:2883,10.33.240.207:2883/EXPERTPLATFORM?rewriteBatchedStatements=true
#格式: 用户名@租户名#集群名 #格式: 用户名@租户名#集群名
username: PMS_dispatchassistant@gxxjycsdb#JSGXCSDB1 username: EXPERTPLATFORM@gxxjycsdb#JSGXCSDB1
password: PMS_dispatchassistant password: Jsyd1018
druid: druid:
#testWhileIdle用于在连接空闲时检查连接是否有效 #testWhileIdle用于在连接空闲时检查连接是否有效
#validationQuery是用于检查连接是否有效的SQL语句 #validationQuery是用于检查连接是否有效的SQL语句
......
...@@ -54,7 +54,7 @@ logging: ...@@ -54,7 +54,7 @@ logging:
file: file:
name: /data/dispatch-assistant/log/${spring.application.name}.log name: /data/dispatch-assistant/log/${spring.application.name}.log
level: level:
com.infoepoch.pms.dispatchassistantProject: info com.infoepoch.pms.dispatchassistant: info
custom: custom:
upload-file: upload-file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment