From ab884b36180f85258bccd5188c08993eece46766 Mon Sep 17 00:00:00 2001 From: tanghc Date: Mon, 2 Sep 2019 13:52:18 +0800 Subject: [PATCH] 2.0 --- .../main/resources/application-dev.properties | 6 +++-- .../com/gitee/sop/sdk/common/SdkConfig.java | 23 ------------------- 2 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/common/SdkConfig.java diff --git a/sop-auth/src/main/resources/application-dev.properties b/sop-auth/src/main/resources/application-dev.properties index 03b6de01..6a15f1c6 100644 --- a/sop-auth/src/main/resources/application-dev.properties +++ b/sop-auth/src/main/resources/application-dev.properties @@ -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} diff --git a/sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/common/SdkConfig.java b/sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/common/SdkConfig.java deleted file mode 100644 index e2c07ea6..00000000 --- a/sop-sdk/sdk-java/src/main/java/com/gitee/sop/sdk/common/SdkConfig.java +++ /dev/null @@ -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(); -}