加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
admin-demo.yml 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
xz 提交于 2022-11-24 13:50 . 修改配置
server:
port: 8762
spring:
application:
name: turing-admin
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/turing?characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: root
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: localhost
port: 6379
password:
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 助手
尝试更多
代码解读
代码找茬
代码优化