From 27fcef09b5af8d6816babf3cf063a8d62726e1d0 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期五, 19 四月 2024 09:18:01 +0800
Subject: [PATCH] 1、下片模块新增多数据源sqlserver配置 可供其他模块有需要配置的参考 2、 a、需要在各自pom文件中添加sqlserver依赖 b、在对应mapper文件中加入DS注解 c、在配置文件中配置数据源 d、主库不需要要添加DS注解指定数据库
---
hangzhoumesParent/gateway/src/main/resources/application.yml | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hangzhoumesParent/gateway/src/main/resources/application.yml b/hangzhoumesParent/gateway/src/main/resources/application.yml
index 8776a14..1452d31 100644
--- a/hangzhoumesParent/gateway/src/main/resources/application.yml
+++ b/hangzhoumesParent/gateway/src/main/resources/application.yml
@@ -20,28 +20,28 @@
- StripPrefix=2
- id: cacheVerticalGlass
- uri: http://127.0.0.1:8082
+ uri: lb://cacheVerticalGlass
predicates:
- Path=/api/cacheVerticalGlass/**
filters:
- StripPrefix=2
- id: loadGlass
- uri: http://127.0.0.1:8083
+ uri: lb://loadGlass
predicates:
- Path=/api/loadGlass/**
filters:
- StripPrefix=2
- id: temperingGlass
- uri: http://127.0.0.1:8084
+ uri: lb://temperingGlass
predicates:
- Path=/api/temperingGlass/**
filters:
- StripPrefix=2
- id: unLoadGlass
- uri: http://127.0.0.1:8085
+ uri: lb://unLoadGlass
predicates:
- Path=/api/unLoadGlass/**
filters:
--
Gitblit v1.8.0