chore(config): 将配置文件注释乱码替换为中文可读文本
This commit is contained in:
@@ -5,27 +5,27 @@ spring:
|
||||
username: root
|
||||
password: 123asd
|
||||
|
||||
# ????
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
# ?? mapper ??????? DEBUG??? SQL ??
|
||||
# 设置 mapper 接口所在包的日志级别为 DEBUG,可以打印 SQL 语句
|
||||
com.yolo.keyborad.mapper: DEBUG
|
||||
# ???????
|
||||
# 设置根日志级别
|
||||
root: INFO
|
||||
# Spring ????
|
||||
# Spring 框架日志
|
||||
org.springframework: INFO
|
||||
# MyBatis ??
|
||||
# MyBatis 日志
|
||||
org.mybatis: DEBUG
|
||||
pattern:
|
||||
# ?????????
|
||||
# ??-????????-?????????ID-?????-?????-?????-???
|
||||
# 自定义日志输出格式
|
||||
# 时间-日志级别-进程ID-线程名称-日志记录器名称-日志消息-换行符
|
||||
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} | %clr(%-5level){highlight} %clr(${PID:- }){magenta} | %clr(%-15thread){yellow} %clr(%-50logger{50}){cyan} | %msg%n"
|
||||
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
openapi:
|
||||
title: "????"
|
||||
title: "接口文档"
|
||||
version: 1.0
|
||||
group:
|
||||
default:
|
||||
@@ -38,52 +38,52 @@ apple:
|
||||
issuer-id: "178b442e-b7be-4526-bd13-ab293d019df0"
|
||||
key-id: "Y7TF7BV74G"
|
||||
bundle-id: "com.loveKey.nyx"
|
||||
# app ? App Store ? Apple ID???????????
|
||||
# app 在 App Store 中的 Apple ID(可在开发者后台查看)
|
||||
app-apple-id: 1234567890
|
||||
|
||||
# p8 ???????????? resources ??
|
||||
# p8 私钥文件路径,建议放在 resources 目录
|
||||
private-key-path: "classpath:SubscriptionKey_Y7TF7BV74G.p8"
|
||||
|
||||
# SANDBOX ? PRODUCTION
|
||||
environment: "SANDBOX"
|
||||
|
||||
# ??????? Apple PKI ???
|
||||
# 用于验证服务器通知的 Apple PKI 根证书
|
||||
root-certificates:
|
||||
- "classpath:AppleRootCA-G2.cer"
|
||||
- "classpath:AppleRootCA-G3.cer"
|
||||
|
||||
dromara:
|
||||
x-file-storage: #??????
|
||||
default-platform: cloudflare-r2 #?????????
|
||||
thumbnail-suffix: ".min.jpg" #?????????.min.jpg??.png?
|
||||
x-file-storage: #文件存储配置
|
||||
default-platform: cloudflare-r2 #默认使用的存储平台
|
||||
thumbnail-suffix: ".min.jpg" #缩略图后缀,例如【.min.jpg】【.png】
|
||||
enable-byte-file-wrapper: false
|
||||
#???????????????????
|
||||
#对应平台的配置写在下方,注意缩进要对齐
|
||||
amazon-s3-v2: # Amazon S3 V2
|
||||
- platform: cloudflare-r2 # ??????
|
||||
enable-storage: true # ????
|
||||
- platform: cloudflare-r2 # 存储平台标识
|
||||
enable-storage: true # 启用存储
|
||||
access-key: 550b33cc4d53e05c2e438601f8a0e209
|
||||
secret-key: df4d529cdae44e6f614ca04f4dc0f1f9a299e57367181243e8abdc7f7c28e99a
|
||||
region: ENAM # ??
|
||||
end-point: https://b632a61caa85401f63c9b32eef3a74c8.r2.cloudflarestorage.com # ??
|
||||
bucket-name: keyborad-resource #???
|
||||
domain: https://resource.loveamorkey.com/ # ????????/???????https://abcd.s3.ap-east-1.amazonaws.com/
|
||||
base-path: avatar/ # ????
|
||||
region: ENAM # 区域
|
||||
end-point: https://b632a61caa85401f63c9b32eef3a74c8.r2.cloudflarestorage.com # 端点
|
||||
bucket-name: keyborad-resource #桶名称
|
||||
domain: https://resource.loveamorkey.com/ # 访问域名,注意末尾的'/',例如:https://abcd.s3.ap-east-1.amazonaws.com/
|
||||
base-path: avatar/ # 基础路径
|
||||
|
||||
############## Sa-Token ?? (??: https://sa-token.cc) ##############
|
||||
############## Sa-Token 配置 (参考文档: https://sa-token.cc) ##############
|
||||
sa-token:
|
||||
# token ??????? cookie ???
|
||||
# token 名称,同时也是 cookie 的名称
|
||||
token-name: auth-token
|
||||
# token ????????? ??30??-1 ??????
|
||||
# token 有效期,单位秒,默认30天,-1 代表永久有效
|
||||
timeout: 2592000
|
||||
# token ??????????????? token ???????????????????-1 ??????????
|
||||
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,-1 代表不限制,永不冻结
|
||||
active-timeout: -1
|
||||
# ?????????????? ?? true ???????, ? false ??????????
|
||||
# 是否允许同一账号并发登录,如果 true 则允许一起登录,如果 false 则新登录挤掉旧登录
|
||||
is-concurrent: true
|
||||
# ????????????????? token ?? true ????????? token, ? false ????????? token?
|
||||
# 在多人登录同一账号时,是否共用一个 token,如果 true 则所有登录共用一个 token,如果 false 则每次登录新建一个 token
|
||||
is-share: false
|
||||
# token ?????????uuid?simple-uuid?random-32?random-64?random-128?tik?
|
||||
# token 风格,可选值:uuid、simple-uuid、random-32、random-64、random-128、tik
|
||||
token-style: random-128
|
||||
# ????????
|
||||
# 是否输出操作日志
|
||||
is-log: true
|
||||
|
||||
nacos:
|
||||
|
||||
@@ -5,34 +5,34 @@ spring:
|
||||
username: root
|
||||
password: 123asd
|
||||
|
||||
# ????????
|
||||
# 生产环境日志配置
|
||||
logging:
|
||||
level:
|
||||
# ??????? SQL ??
|
||||
# 生产环境不打印 SQL 语句
|
||||
com.yolo.keyborad.mapper: INFO
|
||||
# ???????
|
||||
# 设置根日志级别
|
||||
root: INFO
|
||||
# Spring ????
|
||||
# Spring 框架日志
|
||||
org.springframework: WARN
|
||||
# MyBatis ??
|
||||
# MyBatis 日志
|
||||
org.mybatis: WARN
|
||||
pattern:
|
||||
# ???????????
|
||||
# 控制台日志输出格式
|
||||
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} | %clr(%-5level){highlight} %clr(${PID:- }){magenta} | %clr(%-15thread){yellow} %clr(%-50logger{50}){cyan} | %msg%n"
|
||||
# ?????????????
|
||||
# 文件日志输出格式(不带颜色)
|
||||
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} | %-5level ${PID:- } | %-15thread %-50logger{50} | %msg%n"
|
||||
file:
|
||||
# ??????????
|
||||
# 日志文件存放路径
|
||||
name: logs/keyborad-backend.log
|
||||
# ????????
|
||||
# ?????????
|
||||
# 日志文件滚动策略
|
||||
# 单个日志文件最大大小
|
||||
logback:
|
||||
rollingpolicy:
|
||||
max-file-size: 10MB
|
||||
max-history: 30
|
||||
|
||||
# ??????
|
||||
# 用户配置
|
||||
user:
|
||||
register:
|
||||
# ?????????????
|
||||
# 新用户注册时的免费试用额度
|
||||
free-trial-quota: 5
|
||||
|
||||
@@ -21,17 +21,17 @@ spring:
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ANT_PATH_MATCHER
|
||||
# session ????????
|
||||
# session 配置
|
||||
session:
|
||||
timeout: 86400
|
||||
store-type: redis
|
||||
# redis ??
|
||||
# redis 配置
|
||||
data:
|
||||
redis:
|
||||
port: 6379
|
||||
host: localhost
|
||||
database: 0
|
||||
# ?? ANSI ????
|
||||
# 开启 ANSI 彩色输出
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
@@ -50,10 +50,10 @@ mybatis-plus:
|
||||
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||
global-config:
|
||||
db-config:
|
||||
logic-delete-field: isDelete # ????????????(since 3.3.0,????????????2)
|
||||
logic-delete-value: 1 # ??????(??? 1)
|
||||
logic-not-delete-value: 0 # ??????(??? 0)
|
||||
# ?? TypeHandler ?
|
||||
logic-delete-field: isDelete # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
|
||||
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||
# 配置 TypeHandler 包路径
|
||||
type-handlers-package: com.yolo.keyborad.typehandler
|
||||
|
||||
appid: loveKeyboard
|
||||
|
||||
Reference in New Issue
Block a user