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