platform: # type: standalone type: @profiles.platform.type@ server: port: @profiles.server.port@ servlet: context-path: /m spring: application: name: device-manager profiles: active: @profiles.active@ servlet: multipart: max-file-size: 100MB max-request-size: 1000MB jackson: serialization: WRITE_DATES_AS_TIMESTAMPS: true default-property-inclusion: NON_NULL # time-zone: GMT+8 # date-format: yyyy-MM-dd HH:mm:ss redis: host: @profiles.redis.uri@ port: @profiles.redis.port@ username: @profiles.redis.username@ password: @profiles.redis.password@ database: @profiles.redis.database@ timeout: 30000 lettuce: pool: max-idle: 50 min-idle: 20 max-active: 100 max-wait: 5000 # sentinel: # master: mymaster # nodes: @profiles.redis.sentinel@ cloud: loadbalancer: ribbon: enabled: false nacos: # Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类 discovery: server-addr: @profiles.nacos.server-addr@ # Nacos 服务器地址 group: @profiles.nacos.group@ namespace: @profiles.nacos.namespace@ config: server-addr: ${spring.cloud.nacos.discovery.server-addr} # Nacos 服务器地址 group: ${spring.cloud.nacos.discovery.group} namespace: ${spring.cloud.nacos.discovery.namespace} # Nacos 命名空间 dev 的编号 file-extension: yaml rabbitmq: host: @profiles.rabbitmq.host@ port: @profiles.rabbitmq.port@ username: @profiles.rabbitmq.username@ password: @profiles.rabbitmq.password@ exchange-name: @profiles.rabbitmq.exchange@ virtual-host: @profiles.rabbitmq.virtualhost@ publisher-returns: true publisher-confirm-type: correlated dao: exceptiontranslation: enabled: false datasource: #type: com.alibaba.druid.pool.DruidDataSource type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: @profiles.datasource.uri@ username: @profiles.datasource.username@ password: @profiles.datasource.password@ # initial-size: 10 # min-idle: 10 # max-active: 20 # # 配置获取连接等待超时的时间 # max-wait: 60000 # 连接池 hikari: #连接池名 pool-name: DateHikariCP #最小空闲连接数 minimum-idle: 5 # 空闲连接存活最大时间,默认600000(10分钟) idle-timeout: 180000 # 连接池最大连接数,默认是10 maximum-pool-size: 15 # 此属性控制从池返回的连接的默认自动提交行为,默认值:true auto-commit: true # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟 max-lifetime: 1800000 # 数据库连接超时时间,默认30秒,即30000 connection-timeout: 30000 connection-test-query: SELECT 1 mybatis: root-path: com.mortals type-aliases-package: com.mortals.framework.model,com.mortals.xhx.common.**.model,com.mortals.xhx.**.model mapper-locations: classpath*:sqlmap/**/*.xml config-location: classpath*:config/mybatis-sqlmap-config.xml log: enable: true application: auth: unloginUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test* uncheckUrl: /refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test* registerApiPath: /api/register deviceInitApiPath: /api/deviceInit deviceUpdateApiPath: /api/deviceUpdate upload: path: @profiles.filepath@ #feign: # hystrix: # enabled: false sms: smsSendUrl: @profiles.sms.smsSendUrl@ apiId: @profiles.sms.apiId@ type: @profiles.sms.type@ management: security: enabled: false #prometheus+grafana+springboot2监控集成配置 metrics: export: prometheus: enabled: true jmx: enabled: true endpoints: web: exposure: include: '*' base-path: /metrics