Skip to content

Commit

Permalink
style: 优化配置文件格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Dec 28, 2023
1 parent cf18384 commit 3399bc8
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 70 deletions.
71 changes: 36 additions & 35 deletions continew-admin-webapi/src/main/resources/config/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ project:
# URL
url: http:https://localhost:5173

--- ### 日志配置
continew-starter.log:
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
is-print: true

--- ### 服务器配置
server:
# HTTP 端口(默认 8080)
Expand Down Expand Up @@ -89,22 +84,6 @@ spring.cache:
cache-null-values: true

--- ### 验证码配置
continew-starter.captcha:
## 行为验证码配置
behavior:
enabled: true
cache-type: REDIS
water-mark: ${project.app-name}
## 图形验证码配置
graphic:
enabled: true
# 类型
type: SPEC
# 内容长度
length: 4
# 过期时间
expirationInMinutes: 2
## 验证码配置
captcha:
## 邮箱验证码配置
mail:
Expand All @@ -125,6 +104,42 @@ captcha:
# 模板 ID
templateId: 1

--- ### ContiNew Starter 组件配置
continew-starter:
## 验证码配置
captcha:
# 行为验证码配置
behavior:
enabled: true
cache-type: REDIS
water-mark: ${project.app-name}
# 图形验证码配置
graphic:
enabled: true
# 类型
type: SPEC
# 内容长度
length: 4
# 过期时间
expirationInMinutes: 2
## 日志配置
log:
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
is-print: true
## 本地存储配置
storage:
local:
enabled: true
mapping:
FILE:
path-pattern: /file/**
location: C:\${project.app-name}\data\file\
max-file-size: 10MB
AVATAR:
path-pattern: /avatar/**
location: C:\${project.app-name}\data\avatar\
max-file-size: 5MB

--- ### 短信配置
sms:
# 从 YAML 读取配置
Expand Down Expand Up @@ -217,20 +232,6 @@ spring.servlet:
# 单次总上传文件大小限制
max-request-size: 20MB

--- ### 本地存储配置
continew-starter.storage:
local:
enabled: true
mapping:
FILE:
path-pattern: /file/**
location: C:\${project.app-name}\data\file\
max-file-size: 10MB
AVATAR:
path-pattern: /avatar/**
location: C:\${project.app-name}\data\avatar\
max-file-size: 5MB

--- ### 跨域配置
cors:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ project:
# 是否为生产环境
production: true

--- ### 日志配置
continew-starter.log:
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
is-print: false

--- ### 服务器配置
server:
# HTTP 端口(默认 8080)
Expand Down Expand Up @@ -91,22 +86,6 @@ spring.cache:
cache-null-values: true

--- ### 验证码配置
continew-starter.captcha:
## 行为验证码配置
behavior:
enabled: true
cache-type: REDIS
water-mark: ${project.app-name}
## 图形验证码配置
graphic:
enabled: true
# 类型
type: SPEC
# 内容长度
length: 4
# 过期时间
expirationInMinutes: 2
## 验证码配置
captcha:
## 邮箱验证码配置
mail:
Expand All @@ -127,6 +106,42 @@ captcha:
# 模板 ID
templateId: 1

--- ### ContiNew Starter 组件配置
continew-starter:
## 验证码配置
captcha:
# 行为验证码配置
behavior:
enabled: true
cache-type: REDIS
water-mark: ${project.app-name}
# 图形验证码配置
graphic:
enabled: true
# 类型
type: SPEC
# 内容长度
length: 4
# 过期时间
expirationInMinutes: 2
## 日志配置
log:
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
is-print: false
## 本地存储配置
storage:
local:
enabled: true
mapping:
FILE:
path-pattern: /file/**
location: ../data/file/
max-file-size: 10MB
AVATAR:
path-pattern: /avatar/**
location: ../data/avatar/
max-file-size: 5MB

--- ### 短信配置
sms:
# 从 YAML 读取配置
Expand Down Expand Up @@ -216,20 +231,6 @@ spring.servlet:
# 单次总上传文件大小限制
max-request-size: 20MB

--- ### 本地存储配置
continew-starter.storage:
local:
enabled: true
mapping:
FILE:
path-pattern: /file/**
location: ../data/file/
max-file-size: 10MB
AVATAR:
path-pattern: /avatar/**
location: ../data/avatar/
max-file-size: 5MB

--- ### 跨域配置
cors:
enabled: true
Expand Down

0 comments on commit 3399bc8

Please sign in to comment.