Files
lpt-be/src/main/resources/application.yml
T

51 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
spring:
application:
name: LearningProgressTracker
flyway:
# 是否启动 flyway
enabled: true
# 文件编码
encoding: UTF-8
# SQL 脚本位置,默认位于 classpath 下的 db/migration 目录
locations: classpath:db/migration
# SQL 迁移文件的前缀,默认为 V
sql-migration-prefix: V
# SQL 迁移文件中版本与描述间的分隔符,默认为两个下划线 __
sql-migration-separator: __
# SQL 迁移文件的后缀,默认为 .sql
sql-migration-suffixes: .sql
# 是否在迁移时进行验证,默认为 true
validate-on-migrate: true
# 如果 true,首次迁移时基于现有 schema 创建 baseline,这通常用于将 Flyway 集成到已存在的数据库项目中
baseline-on-migrate: true
jackson:
time-zone: UTC
date-format: yyyy-MM-dd'T'HH:mm:ss'Z'
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: satoken
# token 有效期(单位:秒) 默认30天,-1 代表永久有效
timeout: 2592000
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: -1
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
is-share: true
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: uuid
# 是否输出操作日志
is-log: true
# 健康检查配置
management:
endpoints:
web:
exposure:
include: health,info # 或 "*"