mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
2.0
This commit is contained in:
@@ -3,6 +3,7 @@ spring.application.name=sop-auth
|
|||||||
|
|
||||||
# ------- 需要改的配置 -------
|
# ------- 需要改的配置 -------
|
||||||
# mysql数据库账号
|
# mysql数据库账号
|
||||||
|
mysql.host=localhost:3306
|
||||||
mysql.username=root
|
mysql.username=root
|
||||||
mysql.password=root
|
mysql.password=root
|
||||||
|
|
||||||
@@ -14,8 +15,9 @@ nacos.url=127.0.0.1:8848
|
|||||||
# nacos cloud配置
|
# nacos cloud配置
|
||||||
spring.cloud.nacos.discovery.server-addr=${nacos.url}
|
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.username=${mysql.username}
|
||||||
spring.datasource.password=${mysql.password}
|
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();
|
|
||||||
}
|
|
Reference in New Issue
Block a user