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-prod.properties | 45 ++++++++++++++++----------------------------- 1 files changed, 16 insertions(+), 29 deletions(-) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 9bd252e..8894ae6 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -2,41 +2,28 @@ logging.config=classpath:log4j2-local.xml -#ai? -spring.datasource.write.jdbc-url=jdbc:mysql://172.17.0.2:3306/ai_data?useUnicode=true&characterEncoding=UTF-8 -spring.datasource.write.username=phiskin_ai -spring.datasource.write.password=phiskin985AI6DATAfvrg -spring.datasource.write.driver-class-name=com.mysql.cj.jdbc.Driver +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.driverClassName=com.mysql.cj.jdbc.Driver -#bi?? -spring.datasource.read.jdbc-url=jdbc:mysql://172.17.0.45:3306/phiskin_bi?useUnicode=true&characterEncoding=UTF-8 -spring.datasource.read.username=phiskin_bi -spring.datasource.read.password=phiskinBI33W6854#% +spring.datasource.read.jdbc-url=jdbc:mysql://localhost:3306/phi_other_service_read?useUnicode=true&characterEncoding=UTF-8 +spring.datasource.read.username=root +spring.datasource.read.password=root spring.datasource.read.driver-class-name=com.mysql.cj.jdbc.Driver logging.level.org.springframework.boot.autoconfigure = error spring.datasource.write.type=com.alibaba.druid.pool.DruidDataSource -spring.datasource.write.druid.filters=stat,wall,log4j -spring.datasource.write.druid.initial-size=10 -spring.datasource.write.druid.max-active=50 -spring.datasource.write.druid.min-idle=10 -spring.datasource.write.druid.max-wait=20 -spring.datasource.write.druid.time-between-eviction-runs-millis=60000 -spring.datasource.write.druid.min-evictable-idle-time-millis=300000 -spring.datasource.write.druid.test-on-borrow=true -spring.datasource.write.druid.test-while-idle=false - -spring.datasource.read.type=com.alibaba.druid.pool.DruidDataSource -spring.datasource.read.druid.filters=stat,wall,log4j -spring.datasource.read.druid.initial-size=10 -spring.datasource.read.druid.max-active=50 -spring.datasource.read.druid.min-idle=10 -spring.datasource.read.druid.max-wait=20 -spring.datasource.read.druid.time-between-eviction-runs-millis=60000 -spring.datasource.read.druid.min-evictable-idle-time-millis=300000 -spring.datasource.read.druid.test-on-borrow=true -spring.datasource.read.druid.test-while-idle=false +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 -- Gitblit v1.8.0