From c5163861b9cef60a08e0604074973b4ebf583b90 Mon Sep 17 00:00:00 2001 From: linbenlei <572833793@qq.com> Date: Thu, 4 Feb 2021 09:41:31 +0800 Subject: [PATCH] fix: 数据库配置 --- platform/src/main/resources/conf/cache.properties | 8 +++++++- platform/src/main/resources/conf/db.properties | 12 ++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/platform/src/main/resources/conf/cache.properties b/platform/src/main/resources/conf/cache.properties index d896d70..3e80e8b 100644 --- a/platform/src/main/resources/conf/cache.properties +++ b/platform/src/main/resources/conf/cache.properties @@ -3,7 +3,13 @@ CACHE.SERIALIZER.DEFAULT=java ###################\u7f13\u5b58\u5de5\u5177 RedisCache,MemoryCache,MemorySerializeCache CACHE.NAME=RedisCache ###################redis -redis.host=192.168.3.26 + +# +#redis.host=192.168.3.26 + +# +redis.host=127.0.0.1 + redis.port=6379 redis.maxIdel=300 redis.maxWait=300000 diff --git a/platform/src/main/resources/conf/db.properties b/platform/src/main/resources/conf/db.properties index 24af2e6..1170b2d 100644 --- a/platform/src/main/resources/conf/db.properties +++ b/platform/src/main/resources/conf/db.properties @@ -1,8 +1,20 @@ #\u6570\u636e\u5e93:oracle postgre db_type=mysql +# mysql.jdbcUrl=jdbc:mysql://localhost:3306/nanyang_prod?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&serverTimezone=UTC&useSSL=false + +# +#mysql.jdbcUrl=jdbc:mysql://192.168.3.6:3306/nanyang_dev?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&serverTimezone=UTC&useSSL=false + + mysql.user=root + +# mysql.password=root + +# +#mysql.password=Whuhjw2017 + mysql.driverClass = com.mysql.cj.jdbc.Driver -- libgit2 0.21.2