pull/1/head
tanghc 5 years ago
parent 77f6b5e4a5
commit ab884b3618
  1. 6
      sop-auth/src/main/resources/application-dev.properties
  2. 23
      sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/common/SdkConfig.java

@ -3,6 +3,7 @@ spring.application.name=sop-auth
# ------- 需要改的配置 -------
# mysql数据库账号
mysql.host=localhost:3306
mysql.username=root
mysql.password=root
@ -14,8 +15,9 @@ nacos.url=127.0.0.1:8848
# nacos cloud配置
spring.cloud.nacos.discovery.server-addr=${nacos.url}
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
# 数据库配置
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://${mysql.host}/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
spring.datasource.username=${mysql.username}
spring.datasource.password=${mysql.password}

@ -1,23 +0,0 @@
package com.gitee.sop.sdk.common;
/**
* @deprecated 已废弃使用com.gitee.sop.sdk.common.OpenConfig
* @author tanghc
*/
@Deprecated
public class SdkConfig {
public static String SUCCESS_CODE = "10000";
public static String DEFAULT_VERSION = "1.0";
public static String FORMAT_TYPE = "json";
public static String TIMESTAMP_PATTERN = "yyyy-MM-dd HH:mm:ss";
public static String CHARSET = "UTF-8";
public static String SIGN_TYPE = "RSA2";
public static volatile DataNameBuilder dataNameBuilder = new DefaultDataNameBuilder();
}
Loading…
Cancel
Save