Browse Source

多租户配置放入公用配置

lixing 2 years ago
parent
commit
55895b2545
1 changed files with 2 additions and 17 deletions
  1. 2 17
      src/main/resources/bootstrap.yml

+ 2 - 17
src/main/resources/bootstrap.yml

@@ -65,29 +65,14 @@ spring:
       write-dates-as-timestamps: true
     time-zone: Asia/Shanghai
 
-#package:
-#  scan:
-#    # 实体包路径
-#    path: com.persagy.databillboardindicator.domain.pojo
-#    # 是否进行扫描,默认true
-#    flag: true
-#    # 是否进行扫描对比,默认true
-#    detailed: true
+server:
+  port: ${SERVER_PORT:9956}
 
 
 mybatis-plus:
   configuration:
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
-# 多租户配置
-tenant:
-  switchover:
-    datasource-db:
-      enable: true
-      interceptor-by-header: true
-      provider-by-jdbc-query-sql: select id,name,db_name,alias from t_tenant
-      feign-interceptor-enable: true
-
 # 监测报告生成失败定时任务执行间隔(ms)
 failReportPeriod: 600000
 # 生成报告最长允许时间(min)