From 7201205af85508421037119ba66b3a6a48de61ec Mon Sep 17 00:00:00 2001 From: guang <guang@guang.com> Date: 星期六, 06 五月 2023 11:58:57 +0800 Subject: [PATCH] 分布及druid --- src/main/resources/application-local.properties | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index 1cc8789..8894ae6 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -2,10 +2,10 @@ logging.config=classpath:log4j2-local.xml -spring.datasource.write.jdbc-url=jdbc:mysql://localhost:3306/phi_other_service?useUnicode=true&characterEncoding=UTF-8 +spring.datasource.write.url=jdbc:mysql://localhost:3306/phi_other_service?useUnicode=true&characterEncoding=UTF-8 spring.datasource.write.username=root spring.datasource.write.password=root -spring.datasource.write.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.write.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.read.jdbc-url=jdbc:mysql://localhost:3306/phi_other_service_read?useUnicode=true&characterEncoding=UTF-8 spring.datasource.read.username=root @@ -14,16 +14,16 @@ logging.level.org.springframework.boot.autoconfigure = error -spring.datasource.type=com.alibaba.druid.pool.DruidDataSource -spring.datasource.druid.filters=stat,wall,log4j -spring.datasource.druid.initial-size=10 -spring.datasource.druid.max-active=50 -spring.datasource.druid.min-idle=10 -spring.datasource.druid.max-wait=20 -spring.datasource.druid.time-between-eviction-runs-millis=60000 -spring.datasource.druid.min-evictable-idle-time-millis=300000 -spring.datasource.druid.test-on-borrow=true -spring.datasource.druid.test-while-idle=false +spring.datasource.write.type=com.alibaba.druid.pool.DruidDataSource +spring.datasource.write.filters=stat,wall,log4j +spring.datasource.write.initial-size=10 +spring.datasource.write.max-active=50 +spring.datasource.write.min-idle=10 +spring.datasource.write.max-wait=20 +spring.datasource.write.time-between-eviction-runs-millis=60000 +spring.datasource.write.min-evictable-idle-time-millis=300000 +spring.datasource.write.test-on-borrow=true +spring.datasource.write.test-while-idle=false mybatis.type-aliases-package=com.hx.other.servcie.model mybatis.mapperLocations=com/hx/other/service/dao/mapper/xml/*.xml,classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml,classpath*:mapper/*.xml @@ -40,6 +40,5 @@ pagehelper.params=count=countSql pagehelper.reasonable=true pagehelper.support-methods-arguments=true -pagehelper.auto-runtime-dialect=true forest.timeout=10000 -- Gitblit v1.8.0