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 {
public String getUserName(HttpServletRequest request) {
String userId = getUserIdByDecodeToken(request);
return userId;
String userName = getUserIdByDecodeToken(request);
return userName;
}
public String getUserIdByDecodeToken(HttpServletRequest request) {
String userId = null;
String userName = null;
Cookie[] cookies = request.getCookies();
logger.info("cookie = " +cookies );
if (cookies != null && cookies.length != 0) {
......@@ -77,15 +77,15 @@ public class DecodeJWTToken {
String token = pmsWebCookie.getValue();
logger.info(" pms-web cookie " + token);
DecodedJWT decodedJWT = verifySessionToken(token, signSecret);
userId = decodedJWT.getClaim("accountName").asString();
userName = decodedJWT.getClaim("accountName").asString();
} else if (ObSSOCookie != null) {
String token = ObSSOCookie.getValue();
logger.info(" ObSSOCookie cookie " + token);
User user = getUserByToken(token);
// JsonNode result = restTemplateUtils.postForLinkedMultiValueMap(keyValueStoreService.queryValueByKey(StoreKeys.PMS_API_URL), param);
userId = user.getId();
userName = user.getUsername();
}
return userId;
return userName;
} else {
return null;
}
......
......@@ -46,10 +46,10 @@ spring:
datasource:
driver-class-name: com.alipay.oceanbase.jdbc.Driver
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
password: o556723ss4QisC6
username: JSXJY10@epmsdb#OAFCDB1
password: KMp6G9uKN6b7w5W
# driver-class-name: oracle.jdbc.driver.OracleDriver
# url: jdbc:oracle:thin:@//10.32.164.15:1521/pmsdb
# username: dbworkflow
......
......@@ -30,10 +30,10 @@ spring:
#OB
driver-class-name: com.alipay.oceanbase.jdbc.Driver
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
password: PMS_dispatchassistant
username: EXPERTPLATFORM@gxxjycsdb#JSGXCSDB1
password: Jsyd1018
druid:
#testWhileIdle用于在连接空闲时检查连接是否有效
#validationQuery是用于检查连接是否有效的SQL语句
......
......@@ -54,7 +54,7 @@ logging:
file:
name: /data/dispatch-assistant/log/${spring.application.name}.log
level:
com.infoepoch.pms.dispatchassistantProject: info
com.infoepoch.pms.dispatchassistant: info
custom:
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