server: port: @server.port@ version: @version@ servlet: context-path: /data/aggregator spring: main: allow-bean-definition-overriding: true application: name: data-aggregator-server redis: database: @spring.redis.index@ host: @spring.redis.host@ port: @spring.redis.port@ password: @spring.redis.password@ timeout: 30s datasource: #MySQL druid: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.govissue.url@ username: @datasource.druid.govissue.username@ password: @datasource.druid.govissue.password@ #环境 dev|test|prod profiles: active: @spring.profiles.active@ jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss cloud: nacos: discovery: server-addr: @nacos.server-addr@ #nacos的命名空间ID,默认是public namespace: @nacos.discovery.namespace@ #不把自己注册到注册中心的地址 register-enabled: @nacos.register-enabled@ ip: @nacos.ip@ serviceListChangedListening: enable: @nacos.service-list-changed-listening.enable@ config: enabled: @nacos.config-enabled@ server-addr: @nacos.server-addr@ namespace: @nacos.config.namespace@ group: @nacos.config.group@ file-extension: yaml #指定共享配置,且支持动态刷新 # ext-config: # - data-id: datasource.yaml # group: ${spring.cloud.nacos.config.group} # refresh: true # - data-id: common.yaml # group: ${spring.cloud.nacos.config.group} # refresh: true # 数据迁移工具flyway flyway: enabled: false # locations: classpath:db/migration # url: @datasource.druid.stats.url@ # user: @datasource.druid.stats.username@ # password: @datasource.druid.stats.password@ # baseline-on-migrate: true # baseline-version: 0 management: endpoints: web: exposure: include: "*" endpoint: health: show-details: ALWAYS mybatis-plus: mapper-locations: classpath:/mapper/**/*.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: com.epmet.entity global-config: #数据库相关配置 db-config: #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID"; id-type: INPUT #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断" field-strategy: NOT_NULL #驼峰下划线转换 column-underline: true banner: false #原生配置 configuration: map-underscore-to-camel-case: true cache-enabled: false call-setters-on-nulls: true jdbc-type-for-null: 'null' #动态数据源 dynamic: datasource: govorg: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.govorg.url@ username: @datasource.druid.govorg.username@ password: @datasource.druid.govorg.password@ govissue: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.govissue.url@ username: @datasource.druid.govissue.username@ password: @datasource.druid.govissue.password@ govproject: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.govproject.url@ username: @datasource.druid.govproject.username@ password: @datasource.druid.govproject.password@ resigroup: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.resigroup.url@ username: @datasource.druid.resigroup.username@ password: @datasource.druid.resigroup.password@ epmetuser: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.epmetuser.url@ username: @datasource.druid.epmetuser.username@ password: @datasource.druid.epmetuser.password@ commonservice: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.commonservice.url@ username: @datasource.druid.commonservice.username@ password: @datasource.druid.commonservice.password@ opercrm: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.opercrm.url@ username: @datasource.druid.opercrm.username@ password: @datasource.druid.opercrm.password@ datastatistical: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.stats.url@ username: @datasource.druid.stats.username@ password: @datasource.druid.stats.password@ evaluationIndex: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.evaluationIndex.url@ username: @datasource.druid.evaluationIndex.username@ password: @datasource.druid.evaluationIndex.password@ opercustomize: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.opercustomize.url@ username: @datasource.druid.opercustomize.username@ password: @datasource.druid.opercustomize.password@ epmetmessage: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.epmetmessage.url@ username: @datasource.druid.epmetmessage.username@ password: @datasource.druid.epmetmessage.password@ epmettduck: driver-class-name: com.mysql.cj.jdbc.Driver url: @datasource.druid.epmettduck.url@ username: @datasource.druid.epmettduck.username@ password: @datasource.druid.epmettduck.password@ feign: hystrix: enabled: true client: config: default: loggerLevel: BASIC okhttp: enabled: true hystrix: command: default: execution: isolation: thread: timeoutInMilliseconds: 60000 #缺省为1000 ribbon: ReadTimeout: 300000 ConnectTimeout: 300000 #pageHelper分页插件 pagehelper: helper-dialect: mysql reasonable: false #分页合理化配置,例如输入页码为-1,则自动转化为最小页码1 dingTalk: robot: webHook: @dingTalk.robot.webHook@ secret: @dingTalk.robot.secret@ logging: level: com.epmet.dataaggre: debug