style: 优化配置文件格式
This commit is contained in:
parent
cf1838497b
commit
3399bc8dde
@ -3,11 +3,6 @@ project:
|
|||||||
# URL
|
# URL
|
||||||
url: http://localhost:5173
|
url: http://localhost:5173
|
||||||
|
|
||||||
--- ### 日志配置
|
|
||||||
continew-starter.log:
|
|
||||||
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
|
|
||||||
is-print: true
|
|
||||||
|
|
||||||
--- ### 服务器配置
|
--- ### 服务器配置
|
||||||
server:
|
server:
|
||||||
# HTTP 端口(默认 8080)
|
# HTTP 端口(默认 8080)
|
||||||
@ -89,22 +84,6 @@ spring.cache:
|
|||||||
cache-null-values: true
|
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:
|
captcha:
|
||||||
## 邮箱验证码配置
|
## 邮箱验证码配置
|
||||||
mail:
|
mail:
|
||||||
@ -125,6 +104,42 @@ captcha:
|
|||||||
# 模板 ID
|
# 模板 ID
|
||||||
templateId: 1
|
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:
|
sms:
|
||||||
# 从 YAML 读取配置
|
# 从 YAML 读取配置
|
||||||
@ -217,20 +232,6 @@ spring.servlet:
|
|||||||
# 单次总上传文件大小限制
|
# 单次总上传文件大小限制
|
||||||
max-request-size: 20MB
|
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:
|
cors:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -5,11 +5,6 @@ project:
|
|||||||
# 是否为生产环境
|
# 是否为生产环境
|
||||||
production: true
|
production: true
|
||||||
|
|
||||||
--- ### 日志配置
|
|
||||||
continew-starter.log:
|
|
||||||
# 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
|
|
||||||
is-print: false
|
|
||||||
|
|
||||||
--- ### 服务器配置
|
--- ### 服务器配置
|
||||||
server:
|
server:
|
||||||
# HTTP 端口(默认 8080)
|
# HTTP 端口(默认 8080)
|
||||||
@ -91,22 +86,6 @@ spring.cache:
|
|||||||
cache-null-values: true
|
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:
|
captcha:
|
||||||
## 邮箱验证码配置
|
## 邮箱验证码配置
|
||||||
mail:
|
mail:
|
||||||
@ -127,6 +106,42 @@ captcha:
|
|||||||
# 模板 ID
|
# 模板 ID
|
||||||
templateId: 1
|
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:
|
sms:
|
||||||
# 从 YAML 读取配置
|
# 从 YAML 读取配置
|
||||||
@ -216,20 +231,6 @@ spring.servlet:
|
|||||||
# 单次总上传文件大小限制
|
# 单次总上传文件大小限制
|
||||||
max-request-size: 20MB
|
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:
|
cors:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
Loading…
Reference in New Issue
Block a user