mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.0
This commit is contained in:
@@ -10,5 +10,4 @@ import com.gitee.easyopen.doc.annotation.ApiDoc;
|
||||
@ApiDoc("配置列表")
|
||||
public class ConfigListApi {
|
||||
|
||||
// public
|
||||
}
|
||||
|
@@ -41,9 +41,11 @@ public class WebConfig {
|
||||
ApiConfig apiConfig() {
|
||||
ApiConfig apiConfig = new ApiConfig();
|
||||
apiConfig.setJsonResultSerializer(obj -> JSON.toJSONString(obj,
|
||||
SerializerFeature.WriteDateUseDateFormat
|
||||
, SerializerFeature.WriteNullStringAsEmpty
|
||||
, SerializerFeature.WriteMapNullValue));
|
||||
SerializerFeature.WriteNullStringAsEmpty
|
||||
, SerializerFeature.WriteMapNullValue
|
||||
, SerializerFeature.WriteDateUseDateFormat)
|
||||
);
|
||||
|
||||
ApiSessionManager apiSessionManager = new ApiSessionManager();
|
||||
// session有效期
|
||||
int timeout = NumberUtils.toInt(accessTokenTimeout, 30);
|
||||
|
@@ -3,6 +3,7 @@ spring.application.name=sop-admin
|
||||
|
||||
# ------- 需要改的配置 -------
|
||||
# mysql数据库账号
|
||||
mysql.host=localhost:3306
|
||||
mysql.username=root
|
||||
mysql.password=root
|
||||
|
||||
@@ -21,7 +22,7 @@ nacos.discovery.server-addr=${nacos.url}
|
||||
|
||||
# 数据库配置
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
|
||||
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}
|
||||
|
||||
|
Reference in New Issue
Block a user