|
@@ -4,51 +4,13 @@ server:
|
|
|
spring:
|
|
|
application:
|
|
|
name: energy_alarm_service
|
|
|
- datasource:
|
|
|
- dynamic:
|
|
|
- enabled: true
|
|
|
- primary: master #设置默认的数据源或者数据源组,默认值即为master
|
|
|
- strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
- datasource:
|
|
|
- master:
|
|
|
- url: ${spring.datasource.url}
|
|
|
- username: ${spring.datasource.username}
|
|
|
- password: ${spring.datasource.password}
|
|
|
- driver-class-name: ${spring.datasource.driver-class-name}
|
|
|
- continue-on-error: true
|
|
|
- separator: ";"
|
|
|
- schema: classpath*:db/init/table.sql
|
|
|
- data: classpath*:db/init/data.sql
|
|
|
- data:
|
|
|
- elasticsearch:
|
|
|
- repositories:
|
|
|
- enabled: true
|
|
|
- client:
|
|
|
- reactive:
|
|
|
- connection-timeout: 5000
|
|
|
|
|
|
EUREKA_CLIENT_DEFAULT_ZONE: http://frame:123456@develop.persagy.com/integrated-eureka/eureka/
|
|
|
-#EUREKA_CLIENT_DEFAULT_ZONE: http://frame:Hv7MpxJ5pBckigB@47.117.93.148/integrated-eureka/eureka/
|
|
|
-#CONFIG_SERVER_ID: poems-config
|
|
|
|
|
|
mybatis-plus:
|
|
|
configuration:
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+eureka:
|
|
|
+ client:
|
|
|
+ register-with-eureka: false
|
|
|
|
|
|
-integrated:
|
|
|
- swagger:
|
|
|
- title: energy_alarm_service 接口文档
|
|
|
- description: --
|
|
|
- version: v1.0.0
|
|
|
- termsOfServiceUrl: v1.0.0
|
|
|
- contact:
|
|
|
- name: lixing
|
|
|
- # 只展示com.persagy包下的接口
|
|
|
- basePackage: "com.persagy"
|
|
|
-
|
|
|
-feign:
|
|
|
- compression:
|
|
|
- request:
|
|
|
- enabled: false
|
|
|
- response:
|
|
|
- enabled: false
|