加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
admin-demo.yml 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
小黑 提交于 2022-06-17 21:07 . no message
server:
port: 8762
spring:
application:
name: turing-admin
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://43.142.35.71:3306/turing-admin?characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: 123456
mybatis:
basepackage: cn.turing.firecontrol.admin.mapper
xmlLocation: classpath:mapper/**/*.xml
mapper-locations: 'classpath:mapper/*.xml'
mapper:
mappers: cn.turing.firecontrol.common.mapper.CommonMapper
#redis-cache 相关
redis:
pool:
maxActive: 300
maxIdle: 100
maxWait: 1000
host: 43.142.35.71
port: 6379
password: 123456
timeout: 2000
# 服务或应用名
sysName: turing-admin
enable: true
database: 0
auth:
serviceId: turing-auth
user:
token-header: Authorization
limit-expire: 1440 # 单位:分钟
client:
id: turing-admin
secret: 123456
token-header: client-token
logging:
level:
tk.mybatis: DEBUG
cn.turing.firecontrol.admin: DEBUG
#配置swagger
swagger:
enabled: true
base-package: cn.turing.firecontrol.admin
title: Admin Back
version: 1.0.0.SNAPSHOT
description: Admin Back后端服务
contact:
name: 老A
# 跨服务数据合并
merge:
enabled: true
guavaCacheNumMaxSize: 1000
guavaCacheRefreshWriteTime: 10 # min
guavaCacheRefreshThreadPoolSize: 10
aop:
enabled: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化