作者 曾义

增加本地开发配置文件

  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  6 + client-secret: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  7 + scope: server
  8 + # 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
  9 + ignore-urls:
  10 + - '/actuator/**'
  11 + - '/v2/api-docs'
  12 + - '/user/info/*'
  13 + - '/social/info/*'
  14 + - '/mobile/*'
  15 + - '/log/save'
  16 +
  17 +# 数据源
  18 +spring:
  19 + datasource:
  20 + type: com.zaxxer.hikari.HikariDataSource
  21 + driver-class-name: com.mysql.cj.jdbc.Driver
  22 + username: trobs
  23 + password: dfU76$N(kp
  24 + url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true
  25 +
  26 +# swagger相关配置,覆盖全局配置
  27 +swagger:
  28 + authorization:
  29 + authorization-scope-list:
  30 + - scope: 'server'
  31 + description: 'server all'
  32 + - scope: 'read'
  33 + description: 'read all'
  34 + - scope: 'write'
  35 + description: 'access all'
  36 +# Logger Config
  37 +logging:
  38 + level:
  39 + com.trob4cloud.trobs.admin.mapper: debug