2019-01-19 15:31:26 +08:00
|
|
|
spring:
|
|
|
|
|
datasource:
|
2020-03-08 09:32:56 +08:00
|
|
|
url: jdbc:mysql://${zlt.datasource.ip}:3306/oauth-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
2019-01-19 15:31:26 +08:00
|
|
|
username: ${zlt.datasource.username}
|
|
|
|
|
password: ${zlt.datasource.password}
|
2019-10-04 21:45:37 +08:00
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2019-01-19 15:31:26 +08:00
|
|
|
|
|
|
|
|
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:
|
2019-07-09 17:38:36 +08:00
|
|
|
type: redis
|
2019-01-19 15:31:26 +08:00
|
|
|
swagger:
|
|
|
|
|
enabled: true
|
|
|
|
|
title: 认证中心
|
|
|
|
|
description: 认证中心接口文档
|
|
|
|
|
version: 1.0
|
|
|
|
|
base-package: com.central.oauth.controller
|
|
|
|
|
security:
|
|
|
|
|
code:
|
|
|
|
|
# 忽略验证码的应用编号
|
2020-06-10 23:18:10 +08:00
|
|
|
ignoreClientCode: app
|
2021-11-13 09:34:07 +08:00
|
|
|
auth:
|
2022-01-29 15:38:03 +08:00
|
|
|
# 开启统一登出
|
2021-11-22 22:19:32 +08:00
|
|
|
unifiedLogout: true
|
2022-01-29 15:38:03 +08:00
|
|
|
# 同账号登录互踢
|
|
|
|
|
isSingleLogin: true
|
2020-06-10 23:18:10 +08:00
|
|
|
#多租户配置
|
|
|
|
|
tenant:
|
|
|
|
|
enable: true
|
|
|
|
|
ignoreTables:
|
2023-02-13 22:13:01 +08:00
|
|
|
- oauth_client_details
|
|
|
|
|
# 数据权限
|
|
|
|
|
datascope:
|
|
|
|
|
enabled: true
|
|
|
|
|
enabledSqlDebug: true
|
|
|
|
|
includeSqls:
|
|
|
|
|
# 应用列表
|
|
|
|
|
- com.central.oauth.mapper.ClientMapper.findList
|