From 3cc6aa69cca0b0d991f8537999c578eaee68e07e Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期四, 25 四月 2024 14:33:24 +0800 Subject: [PATCH] 提交项目多环境配置 --- hangzhoumesParent/moduleService/TemperingGlassModule/src/main/resources/application.yml | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-) diff --git a/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/resources/application.yml b/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/resources/application.yml index a84c58e..e9fcc1e 100644 --- a/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/resources/application.yml +++ b/hangzhoumesParent/moduleService/TemperingGlassModule/src/main/resources/application.yml @@ -1,27 +1,10 @@ server: port: 8084 spring: - datasource: - dynamic: - primary: hangzhoumes #璁剧疆榛樿鐨勬暟鎹簮鎴栬�呮暟鎹簮缁�,榛樿鍊煎嵆涓簃aster - strict: false #璁剧疆涓ユ牸妯″紡,榛樿false涓嶅惎鍔�. 鍚姩鍚庡湪鏈尮閰嶅埌鎸囧畾鏁版嵁婧愭椂鍊欏洖鎶涘嚭寮傚父,涓嶅惎鍔ㄤ細浣跨敤榛樿鏁版嵁婧�. - datasource: - hangzhoumes: - url: jdbc:mysql://10.153.19.150:3306/hangzhoumes?serverTimezone=GMT%2b8 - username: root - password: beibo.123/ - driver-class-name: com.mysql.cj.jdbc.Driver - cloud: - nacos: - discovery: - server-addr: 10.153.19.150:8848 + profiles: + active: prod application: name: temperingGlass - redis: - database: 0 - host: 10.153.19.150 - port: 6379 - password: 123456 mybatis-plus: mapper-locations: classpath*:mapper/*.xml configuration: -- Gitblit v1.8.0