2019-01-19 15:31:26 +08:00
|
|
|
spring:
|
|
|
|
|
datasource:
|
2025-01-02 21:34:47 +08:00
|
|
|
# url: jdbc:mysql://${zlt.datasource.ip}:3306/user-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
|
|
|
url: jdbc:mysql://${zlt.datasource.ip}/user-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.common.model
|
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
|
|
|
|
id-type: auto
|
|
|
|
|
|
2023-11-24 17:28:19 +08:00
|
|
|
springdoc:
|
|
|
|
|
group-configs:
|
2023-11-25 10:17:54 +08:00
|
|
|
- group: 'default'
|
2023-11-24 17:28:19 +08:00
|
|
|
paths-to-match: '/**'
|
|
|
|
|
packages-to-scan: com.central.user.controller
|
|
|
|
|
|
|
|
|
|
knife4j:
|
|
|
|
|
enable: true
|
|
|
|
|
setting:
|
|
|
|
|
swagger-model-name: 用户中心接口文档
|
|
|
|
|
|
2019-01-19 15:31:26 +08:00
|
|
|
zlt:
|
|
|
|
|
cache-manager:
|
|
|
|
|
configs:
|
|
|
|
|
- key: menu
|
2019-08-02 16:12:24 +08:00
|
|
|
second: 300
|
2019-01-19 15:31:26 +08:00
|
|
|
- key: user
|
2019-01-22 14:12:30 +08:00
|
|
|
second: 1800
|
2019-08-09 00:46:18 +08:00
|
|
|
#多租户配置
|
|
|
|
|
tenant:
|
|
|
|
|
enable: true
|
|
|
|
|
ignoreTables:
|
|
|
|
|
- sys_user
|
|
|
|
|
- sys_role_user
|
2020-02-03 11:54:39 +08:00
|
|
|
- sys_role_menu
|
2025-07-29 22:38:21 +08:00
|
|
|
- wechat_config
|
2020-02-03 11:54:39 +08:00
|
|
|
ignoreSqls:
|
2020-06-29 22:45:30 +08:00
|
|
|
# 用户关联角色时,显示所有角色
|
2020-02-04 17:35:47 +08:00
|
|
|
- com.central.user.mapper.SysRoleMapper.findAll
|
2020-06-29 22:45:30 +08:00
|
|
|
# 用户列表显示用户所关联的所有角色
|
|
|
|
|
- com.central.user.mapper.SysUserRoleMapper.findRolesByUserIds
|
2023-02-13 22:13:01 +08:00
|
|
|
# 数据权限
|
|
|
|
|
datascope:
|
2023-03-05 11:00:03 +08:00
|
|
|
enabled: false
|
2023-02-13 22:13:01 +08:00
|
|
|
ignoreTables:
|
|
|
|
|
- sys_role_user
|
|
|
|
|
- sys_role_menu
|
|
|
|
|
includeSqls:
|
|
|
|
|
# 用户列表
|
|
|
|
|
- com.central.user.mapper.SysUserMapper.findList
|
|
|
|
|
# 角色列表
|
|
|
|
|
- com.central.user.mapper.SysRoleMapper.findList
|
|
|
|
|
# 菜单列表
|
|
|
|
|
- com.central.user.mapper.SysMenuMapper.selectList
|
2024-12-24 16:20:39 +08:00
|
|
|
|
|
|
|
|
tencent:
|
|
|
|
|
app-id: ${zlt.security.tencent.app-id}
|
|
|
|
|
app-secret: ${zlt.security.tencent.app-secret}
|
2024-12-24 16:32:23 +08:00
|
|
|
access-token-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=
|
|
|
|
|
get-phonenumber-url: https://api.weixin.qq.com/cgi-bin/token
|
2024-12-24 16:20:39 +08:00
|
|
|
#审计日志
|
2020-02-04 17:35:47 +08:00
|
|
|
# audit-log:
|
2020-02-08 12:17:10 +08:00
|
|
|
# enabled: true
|
|
|
|
|
# log-type: db
|
|
|
|
|
# datasource:
|
|
|
|
|
# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
# jdbc-url: jdbc:mysql://${zlt.datasource.ip}:3306/logger-center?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
|
|
|
# username: ${zlt.datasource.username}
|
2024-12-24 16:20:39 +08:00
|
|
|
# password: ${zlt.datasource.password}
|