|
@@ -5,8 +5,51 @@ server:
|
|
spring:
|
|
spring:
|
|
application:
|
|
application:
|
|
name: energy-alarm-service
|
|
name: energy-alarm-service
|
|
|
|
+ jackson:
|
|
|
|
+ serialization:
|
|
|
|
+ # 统一将时间都转为时间戳
|
|
|
|
+ write-dates-as-timestamps: true
|
|
|
|
+ # 设置时间戳的时区
|
|
|
|
+ time-zone: Asia/Shanghai
|
|
|
|
+ datasource:
|
|
|
|
+ dynamic:
|
|
|
|
+ primary: master
|
|
|
|
+ strict: false
|
|
|
|
+ datasource:
|
|
|
|
+ master:
|
|
|
|
+ schema: classpath*:db/init/table.sql
|
|
|
|
+ data: classpath*:db/init/data_dev.sql
|
|
|
|
+ continue-on-error: true
|
|
|
|
+ url: jdbc:mysql://${mysql.ip}:${mysql.port}/energy_alarm_service?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
|
|
|
|
+ username: ${mysql.username}
|
|
|
|
+ password: ${mysql.password}
|
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
|
-EUREKA_CLIENT_DEFAULT_ZONE: http://frame:123456@develop.persagy.com/integrated-eureka/eureka/
|
|
|
|
|
|
+
|
|
|
|
+feign:
|
|
|
|
+ compression:
|
|
|
|
+ response:
|
|
|
|
+ # feign返回结果不压缩
|
|
|
|
+ enabled: false
|
|
|
|
+ request:
|
|
|
|
+ # feign请求参数不压缩
|
|
|
|
+ enabled: false
|
|
|
|
+
|
|
|
|
+integrated:
|
|
|
|
+ swagger:
|
|
|
|
+ # 接口文档版本
|
|
|
|
+ version: v1.0.0
|
|
|
|
+ # 接口访问地址
|
|
|
|
+ termsOfServiceUrl: localhost
|
|
|
|
+ # 作者信息
|
|
|
|
+ contact:
|
|
|
|
+ name: lixing
|
|
|
|
+ # 只展示com.persagy包下的接口, 不展示swagger默认的接口
|
|
|
|
+ basePackage: com.persagy
|
|
|
|
+ # 接口文档简介
|
|
|
|
+ description: --
|
|
|
|
+ # 接口文档名称
|
|
|
|
+ title: energy-alarm-service 接口文档
|
|
|
|
|
|
# 不打印sql
|
|
# 不打印sql
|
|
mybatis-plus:
|
|
mybatis-plus:
|
|
@@ -14,15 +57,13 @@ mybatis-plus:
|
|
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
|
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
|
-
|
|
|
|
eureka:
|
|
eureka:
|
|
-# instance:
|
|
|
|
-# prefer-ip-address: true
|
|
|
|
client:
|
|
client:
|
|
- register-with-eureka: ${register-with-eureka}
|
|
|
|
|
|
+ register-with-eureka: ${register-with-eureka}:true
|
|
|
|
|
|
# com.persagy包的日志等级为info
|
|
# com.persagy包的日志等级为info
|
|
logging:
|
|
logging:
|
|
|
|
+ config: classpath:logback-spring.xml
|
|
level:
|
|
level:
|
|
com:
|
|
com:
|
|
persagy: info
|
|
persagy: info
|