From 51cd1b08082945e892ccdd04c70f04c6c5346bea Mon Sep 17 00:00:00 2001 From: 05412 Date: Thu, 18 Jul 2024 10:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 88 +++++++++++++++--------------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 126080d..210974f 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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\/).* \ No newline at end of file + site: http://127.0.0.1:18888 # 站点 + expire: 6 # 过期时间 + unit: hours # 单位 + secret: Is#45Ddw29apkbHawwaHb4d^&w29apkbHawwaHb4d^& # 密钥 + white-list: # 白名单 + - ^/login$ # 登录 + - ^/reg$ # 注册 + - ^(?!\/api\/).* # 不包含api \ No newline at end of file