添加配置文件注释

This commit is contained in:
05412 2024-07-18 10:00:13 +08:00
parent dd9ebbaa65
commit 51cd1b0808

View File

@ -1,55 +1,57 @@
server: server:
port: 18888 port: 18888 # 端口
spring: spring:
profiles: profiles:
active: default active: default # 激活配置
application: application:
name: surl name: surl # 应用名称
main: main:
banner-mode: off banner-mode: off # 关闭banner
datasource: datasource:
name: postgres name: postgres # 数据库名称
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver # 驱动名称
url: jdbc:postgresql://localhost:5432/postgres?reWriteBatchedInserts=true url: jdbc:postgresql://localhost:5432/postgres?reWriteBatchedInserts=true # 数据库连接地址
username: postgres username: postgres # 数据库用户名
password: f6059e64-889b-4f31-97a7-deaeb1a36d58 password: f6059e64-889b-4f31-97a7-deaeb1a36d58 # 数据库密码
hikari: hikari: # HikariCP
connection-test-query: SELECT 1 connection-test-query: SELECT 1 # 测试连接
connection-timeout: 30000 connection-timeout: 30000 # 连接超时时间
maximum-pool-size: 10 maximum-pool-size: 10 # 最大连接数
jackson: jackson: # Jackson
deserialization: deserialization: # 反序列化
use-big-decimal-for-floats: true use-big-decimal-for-floats: true # 使用BigDecimal
use-big-integer-for-ints: true use-big-integer-for-ints: true # 使用BigInteger
time-zone: Asia/Shanghai time-zone: Asia/Shanghai # 时区
serialization: serialization: # 序列化
indent-output: true indent-output: true # 输出格式
date-format: yyyy-MM-dd HH:mm:ss.SSS date-format: yyyy-MM-dd HH:mm:ss.SSS # 日期格式
data: data: # spring data
redis: redis:
host: localhost host: localhost # 地址
database: 0 database: 0 # 数据库
jedis: jedis:
pool: pool:
enabled: true enabled: true # 启用连接池
max-active: 8 max-active: 8 # 最大连接数
max-idle: 8 max-idle: 8 # 最大空闲连接数
min-idle: 1 min-idle: 1 # 最小空闲连接数
max-wait: 100ms max-wait: 100ms # 最大等待时间
exposed: exposed: # Exposed ORM框架配置
show-sql: true show-sql: true # 显示sql
generate-ddl: true generate-ddl: true # 生成ddl
logging: logging:
level: level: # 日志级别
root: info root: info # 全局日志级别
Exposed: debug Exposed: debug # Exposed日志级别
# 基础配置
base: base:
configs: configs:
site: http://127.0.0.1:18888 site: http://127.0.0.1:18888 # 站点
expire: 6 expire: 6 # 过期时间
unit: hours unit: hours # 单位
secret: Is#45Ddw29apkbHawwaHb4d^&w29apkbHawwaHb4d^& secret: Is#45Ddw29apkbHawwaHb4d^&w29apkbHawwaHb4d^& # 密钥
white-list: white-list: # 白名单
- ^/login$ - ^/login$ # 登录
- ^/reg$ - ^/reg$ # 注册
- ^(?!\/api\/).* - ^(?!\/api\/).* # 不包含api