application.yml 1.2 KB
Newer Older
zlt2000's avatar
zlt2000 已提交
1 2
spring:
  datasource:
zlt2000's avatar
zlt2000 已提交
3
    url: jdbc:mysql://${zlt.datasource.ip}:3306/oauth-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
zlt2000's avatar
zlt2000 已提交
4 5
    username: ${zlt.datasource.username}
    password: ${zlt.datasource.password}
6
    driver-class-name: com.mysql.cj.jdbc.Driver
zlt2000's avatar
zlt2000 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19

mybatis-plus:
  mapper-locations: classpath:/mapper/*Mapper.xml
  #实体扫描,多个package用逗号或者分号分隔
  typeAliasesPackage: com.central.oauth.model
  global-config:
    db-config:
      id-type: auto

zlt:
  oauth2:
    token:
      store:
20
        type: redis
zlt2000's avatar
zlt2000 已提交
21 22 23 24 25 26 27 28 29
  swagger:
    enabled: true
    title: 认证中心
    description: 认证中心接口文档
    version: 1.0
    base-package: com.central.oauth.controller
  security:
    code:
      # 忽略验证码的应用编号
zlt2000's avatar
zlt2000 已提交
30
      ignoreClientCode: app
zlt2000's avatar
zlt2000 已提交
31
    auth:
zlt2000's avatar
zlt2000 已提交
32
      # 开启统一登出
zlt2000's avatar
zlt2000 已提交
33
      unifiedLogout: true
zlt2000's avatar
zlt2000 已提交
34 35
      # 同账号登录互踢
      isSingleLogin: true
zlt2000's avatar
zlt2000 已提交
36 37 38 39
  #多租户配置
  tenant:
    enable: true
    ignoreTables:
40 41 42
      - oauth_client_details
  # 数据权限
  datascope:
zlt2000's avatar
zlt2000 已提交
43
    enabled: false
44 45 46
    includeSqls:
      # 应用列表
      - com.central.oauth.mapper.ClientMapper.findList