mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 10:57:10 +08:00 
			
		
		
		
	chore: 调整配置文件内的配置顺序(由配置修改频率高则靠上规则 => 新手上手适合阅读顺序)
This commit is contained in:
		@@ -93,6 +93,42 @@ jetcache:
 | 
			
		||||
      valueEncoder: java
 | 
			
		||||
      valueDecoder: java
 | 
			
		||||
 | 
			
		||||
--- ### 跨域配置
 | 
			
		||||
continew-starter.web.cors:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins: '*'
 | 
			
		||||
  # 配置允许跨域的请求方式
 | 
			
		||||
  allowed-methods: '*'
 | 
			
		||||
  # 配置允许跨域的请求头
 | 
			
		||||
  allowed-headers: '*'
 | 
			
		||||
  # 配置允许跨域的响应头
 | 
			
		||||
  exposed-headers: '*'
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  access-log:
 | 
			
		||||
    # 是否打印访问日志(类似于 Nginx access log)
 | 
			
		||||
    enabled: true
 | 
			
		||||
## 项目日志配置(配置重叠部分,优先级高于 logback-spring.xml 中的配置)
 | 
			
		||||
logging:
 | 
			
		||||
  level:
 | 
			
		||||
    top.continew.admin: DEBUG
 | 
			
		||||
    top.continew.starter: DEBUG
 | 
			
		||||
  file:
 | 
			
		||||
    path: ./logs
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:字段加/解密配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  crypto:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # 对称加密算法密钥
 | 
			
		||||
    password: abcdefghijklmnop
 | 
			
		||||
    # 非对称加密算法密钥(在线生成 RSA 密钥对:http://web.chacuo.net/netrsakeypair)
 | 
			
		||||
    public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM51dgYtMyF+tTQt80sfFOpSV27a7t9uaUVeFrdGiVxscuizE7H8SMntYqfn9lp8a5GH5P1/GGehVjUD2gF/4kcCAwEAAQ==
 | 
			
		||||
    private-key: MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAznV2Bi0zIX61NC3zSx8U6lJXbtru325pRV4Wt0aJXGxy6LMTsfxIye1ip+f2WnxrkYfk/X8YZ6FWNQPaAX/iRwIDAQABAkEAk/VcAusrpIqA5Ac2P5Tj0VX3cOuXmyouaVcXonr7f+6y2YTjLQuAnkcfKKocQI/juIRQBFQIqqW/m1nmz1wGeQIhAO8XaA/KxzOIgU0l/4lm0A2Wne6RokJ9HLs1YpOzIUmVAiEA3Q9DQrpAlIuiT1yWAGSxA9RxcjUM/1kdVLTkv0avXWsCIE0X8woEjK7lOSwzMG6RpEx9YHdopjViOj1zPVH61KTxAiBmv/dlhqkJ4rV46fIXELZur0pj6WC3N7a4brR8a+CLLQIhAMQyerWl2cPNVtE/8tkziHKbwW3ZUiBXU24wFxedT9iV
 | 
			
		||||
 | 
			
		||||
--- ### 验证码配置
 | 
			
		||||
continew-starter.captcha:
 | 
			
		||||
  ## 行为验证码
 | 
			
		||||
@@ -131,49 +167,11 @@ captcha:
 | 
			
		||||
    # 过期时间
 | 
			
		||||
    expirationInMinutes: 5
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  access-log:
 | 
			
		||||
    # 是否打印访问日志(类似于 Nginx access log)
 | 
			
		||||
    enabled: true
 | 
			
		||||
## 项目日志配置(配置重叠部分,优先级高于 logback-spring.xml 中的配置)
 | 
			
		||||
logging:
 | 
			
		||||
  level:
 | 
			
		||||
    top.continew.admin: DEBUG
 | 
			
		||||
    top.continew.starter: DEBUG
 | 
			
		||||
  file:
 | 
			
		||||
    path: ./logs
 | 
			
		||||
 | 
			
		||||
--- ### 跨域配置
 | 
			
		||||
continew-starter.web.cors:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins: '*'
 | 
			
		||||
  # 配置允许跨域的请求方式
 | 
			
		||||
  allowed-methods: '*'
 | 
			
		||||
  # 配置允许跨域的请求头
 | 
			
		||||
  allowed-headers: '*'
 | 
			
		||||
  # 配置允许跨域的响应头
 | 
			
		||||
  exposed-headers: '*'
 | 
			
		||||
 | 
			
		||||
--- ### 接口文档配置
 | 
			
		||||
springdoc:
 | 
			
		||||
  swagger-ui:
 | 
			
		||||
    enabled: true
 | 
			
		||||
 | 
			
		||||
--- ### WebSocket 配置
 | 
			
		||||
continew-starter.messaging.websocket:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  path: /websocket
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins: '*'
 | 
			
		||||
 | 
			
		||||
--- ### 短信配置
 | 
			
		||||
# 配置文件方式和 [短信配置] 功能可任选其一方式使用,也可共同使用,但实际开发时建议选择一种,注释或删除另一方
 | 
			
		||||
sms:
 | 
			
		||||
  http-log: true
 | 
			
		||||
  is-print: false
 | 
			
		||||
  is-print: true
 | 
			
		||||
#  # 从 YAML 读取配置
 | 
			
		||||
#  config-type: YAML
 | 
			
		||||
#  blends:
 | 
			
		||||
@@ -201,20 +199,12 @@ sms:
 | 
			
		||||
#          class: javax.net.ssl.SSLSocketFactory
 | 
			
		||||
#          port: 465
 | 
			
		||||
 | 
			
		||||
--- ### Just Auth 配置
 | 
			
		||||
justauth:
 | 
			
		||||
--- ### WebSocket 配置
 | 
			
		||||
continew-starter.messaging.websocket:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  type:
 | 
			
		||||
    GITEE:
 | 
			
		||||
      client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=gitee
 | 
			
		||||
    GITHUB:
 | 
			
		||||
      client-id: 38080dad08cfbdfacca9
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=github
 | 
			
		||||
  cache:
 | 
			
		||||
    type: REDIS
 | 
			
		||||
  path: /websocket
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins: '*'
 | 
			
		||||
 | 
			
		||||
--- ### Sa-Token 扩展配置
 | 
			
		||||
sa-token.extension:
 | 
			
		||||
@@ -237,36 +227,20 @@ sa-token.extension:
 | 
			
		||||
    # 本地存储资源
 | 
			
		||||
    - /file/**
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:字段加/解密配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  crypto:
 | 
			
		||||
--- ### Just Auth 配置
 | 
			
		||||
justauth:
 | 
			
		||||
  enabled: true
 | 
			
		||||
    # 对称加密算法密钥
 | 
			
		||||
    password: abcdefghijklmnop
 | 
			
		||||
    # 非对称加密算法密钥(在线生成 RSA 密钥对:http://web.chacuo.net/netrsakeypair)
 | 
			
		||||
    public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM51dgYtMyF+tTQt80sfFOpSV27a7t9uaUVeFrdGiVxscuizE7H8SMntYqfn9lp8a5GH5P1/GGehVjUD2gF/4kcCAwEAAQ==
 | 
			
		||||
    private-key: MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAznV2Bi0zIX61NC3zSx8U6lJXbtru325pRV4Wt0aJXGxy6LMTsfxIye1ip+f2WnxrkYfk/X8YZ6FWNQPaAX/iRwIDAQABAkEAk/VcAusrpIqA5Ac2P5Tj0VX3cOuXmyouaVcXonr7f+6y2YTjLQuAnkcfKKocQI/juIRQBFQIqqW/m1nmz1wGeQIhAO8XaA/KxzOIgU0l/4lm0A2Wne6RokJ9HLs1YpOzIUmVAiEA3Q9DQrpAlIuiT1yWAGSxA9RxcjUM/1kdVLTkv0avXWsCIE0X8woEjK7lOSwzMG6RpEx9YHdopjViOj1zPVH61KTxAiBmv/dlhqkJ4rV46fIXELZur0pj6WC3N7a4brR8a+CLLQIhAMQyerWl2cPNVtE/8tkziHKbwW3ZUiBXU24wFxedT9iV
 | 
			
		||||
 | 
			
		||||
--- ### 限流器配置
 | 
			
		||||
continew-starter:
 | 
			
		||||
  rate-limiter:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    key-prefix: RateLimiter
 | 
			
		||||
 | 
			
		||||
--- ### 文件上传配置
 | 
			
		||||
spring.servlet:
 | 
			
		||||
  multipart:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # 单文件上传大小限制
 | 
			
		||||
    max-file-size: 10MB
 | 
			
		||||
    # 单次总上传文件大小限制
 | 
			
		||||
    max-request-size: 20MB
 | 
			
		||||
## 头像配置
 | 
			
		||||
avatar:
 | 
			
		||||
  # 存储路径
 | 
			
		||||
  path: user/avatar/
 | 
			
		||||
  # 支持的后缀
 | 
			
		||||
  support-suffix: jpg,jpeg,png,gif
 | 
			
		||||
  type:
 | 
			
		||||
    GITEE:
 | 
			
		||||
      client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=gitee
 | 
			
		||||
    GITHUB:
 | 
			
		||||
      client-id: 38080dad08cfbdfacca9
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=github
 | 
			
		||||
  cache:
 | 
			
		||||
    type: REDIS
 | 
			
		||||
 | 
			
		||||
--- ### Snail Job 配置
 | 
			
		||||
snail-job:
 | 
			
		||||
 
 | 
			
		||||
@@ -95,6 +95,49 @@ jetcache:
 | 
			
		||||
      valueEncoder: java
 | 
			
		||||
      valueDecoder: java
 | 
			
		||||
 | 
			
		||||
--- ### 接口文档配置
 | 
			
		||||
## 接口文档增强配置
 | 
			
		||||
knife4j:
 | 
			
		||||
  # 开启生产环境屏蔽
 | 
			
		||||
  production: ${project.production}
 | 
			
		||||
 | 
			
		||||
--- ### 跨域配置
 | 
			
		||||
continew-starter.web.cors:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins:
 | 
			
		||||
    - ${project.url}
 | 
			
		||||
  # 配置允许跨域的请求方式
 | 
			
		||||
  allowed-methods: '*'
 | 
			
		||||
  # 配置允许跨域的请求头
 | 
			
		||||
  allowed-headers: '*'
 | 
			
		||||
  # 配置允许跨域的响应头
 | 
			
		||||
  exposed-headers: '*'
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  access-log:
 | 
			
		||||
    # 是否打印访问日志(类似于 Nginx access log)
 | 
			
		||||
    enabled: false
 | 
			
		||||
## 项目日志配置(配置重叠部分,优先级高于 logback-spring.xml 中的配置)
 | 
			
		||||
logging:
 | 
			
		||||
  level:
 | 
			
		||||
    top.continew.admin: INFO
 | 
			
		||||
    top.continew.starter: INFO
 | 
			
		||||
  file:
 | 
			
		||||
    path: ../logs
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:字段加/解密配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  crypto:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # 对称加密算法密钥
 | 
			
		||||
    password: abcdefghijklmnop
 | 
			
		||||
    # 非对称加密算法密钥(在线生成 RSA 密钥对:http://web.chacuo.net/netrsakeypair)
 | 
			
		||||
    public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM51dgYtMyF+tTQt80sfFOpSV27a7t9uaUVeFrdGiVxscuizE7H8SMntYqfn9lp8a5GH5P1/GGehVjUD2gF/4kcCAwEAAQ==
 | 
			
		||||
    private-key: MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAznV2Bi0zIX61NC3zSx8U6lJXbtru325pRV4Wt0aJXGxy6LMTsfxIye1ip+f2WnxrkYfk/X8YZ6FWNQPaAX/iRwIDAQABAkEAk/VcAusrpIqA5Ac2P5Tj0VX3cOuXmyouaVcXonr7f+6y2YTjLQuAnkcfKKocQI/juIRQBFQIqqW/m1nmz1wGeQIhAO8XaA/KxzOIgU0l/4lm0A2Wne6RokJ9HLs1YpOzIUmVAiEA3Q9DQrpAlIuiT1yWAGSxA9RxcjUM/1kdVLTkv0avXWsCIE0X8woEjK7lOSwzMG6RpEx9YHdopjViOj1zPVH61KTxAiBmv/dlhqkJ4rV46fIXELZur0pj6WC3N7a4brR8a+CLLQIhAMQyerWl2cPNVtE/8tkziHKbwW3ZUiBXU24wFxedT9iV
 | 
			
		||||
 | 
			
		||||
--- ### 验证码配置
 | 
			
		||||
continew-starter.captcha:
 | 
			
		||||
  ## 行为验证码
 | 
			
		||||
@@ -133,47 +176,6 @@ captcha:
 | 
			
		||||
    # 过期时间
 | 
			
		||||
    expirationInMinutes: 5
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  access-log:
 | 
			
		||||
    # 是否打印访问日志(类似于 Nginx access log)
 | 
			
		||||
    enabled: false
 | 
			
		||||
## 项目日志配置(配置重叠部分,优先级高于 logback-spring.xml 中的配置)
 | 
			
		||||
logging:
 | 
			
		||||
  level:
 | 
			
		||||
    top.continew.admin: INFO
 | 
			
		||||
    top.continew.starter: INFO
 | 
			
		||||
  file:
 | 
			
		||||
    path: ../logs
 | 
			
		||||
 | 
			
		||||
--- ### 跨域配置
 | 
			
		||||
continew-starter.web.cors:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins:
 | 
			
		||||
    - ${project.url}
 | 
			
		||||
  # 配置允许跨域的请求方式
 | 
			
		||||
  allowed-methods: '*'
 | 
			
		||||
  # 配置允许跨域的请求头
 | 
			
		||||
  allowed-headers: '*'
 | 
			
		||||
  # 配置允许跨域的响应头
 | 
			
		||||
  exposed-headers: '*'
 | 
			
		||||
 | 
			
		||||
--- ### 接口文档配置
 | 
			
		||||
## 接口文档增强配置
 | 
			
		||||
knife4j:
 | 
			
		||||
  # 开启生产环境屏蔽
 | 
			
		||||
  production: ${project.production}
 | 
			
		||||
 | 
			
		||||
--- ### WebSocket 配置
 | 
			
		||||
continew-starter.messaging.websocket:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  path: /websocket
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins:
 | 
			
		||||
    - ${project.url}
 | 
			
		||||
 | 
			
		||||
--- ### 短信配置
 | 
			
		||||
# 配置文件方式和 [短信配置] 功能可任选其一方式使用,也可共同使用,但实际开发时建议选择一种,注释或删除另一方
 | 
			
		||||
sms:
 | 
			
		||||
@@ -205,20 +207,13 @@ sms:
 | 
			
		||||
#          class: javax.net.ssl.SSLSocketFactory
 | 
			
		||||
#          port: 465
 | 
			
		||||
 | 
			
		||||
--- ### Just Auth 配置
 | 
			
		||||
justauth:
 | 
			
		||||
--- ### WebSocket 配置
 | 
			
		||||
continew-starter.messaging.websocket:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  type:
 | 
			
		||||
    GITEE:
 | 
			
		||||
      client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=gitee
 | 
			
		||||
    GITHUB:
 | 
			
		||||
      client-id: 38080dad08cfbdfacca9
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=github
 | 
			
		||||
  cache:
 | 
			
		||||
    type: REDIS
 | 
			
		||||
  path: /websocket
 | 
			
		||||
  # 配置允许跨域的域名
 | 
			
		||||
  allowed-origins:
 | 
			
		||||
    - ${project.url}
 | 
			
		||||
 | 
			
		||||
--- ### Sa-Token 扩展配置
 | 
			
		||||
sa-token.extension:
 | 
			
		||||
@@ -234,36 +229,20 @@ sa-token.extension:
 | 
			
		||||
    # 本地存储资源
 | 
			
		||||
    - /file/**
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:字段加/解密配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  crypto:
 | 
			
		||||
--- ### Just Auth 配置
 | 
			
		||||
justauth:
 | 
			
		||||
  enabled: true
 | 
			
		||||
    # 对称加密算法密钥
 | 
			
		||||
    password: abcdefghijklmnop
 | 
			
		||||
    # 非对称加密算法密钥(在线生成 RSA 密钥对:http://web.chacuo.net/netrsakeypair)
 | 
			
		||||
    public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM51dgYtMyF+tTQt80sfFOpSV27a7t9uaUVeFrdGiVxscuizE7H8SMntYqfn9lp8a5GH5P1/GGehVjUD2gF/4kcCAwEAAQ==
 | 
			
		||||
    private-key: MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAznV2Bi0zIX61NC3zSx8U6lJXbtru325pRV4Wt0aJXGxy6LMTsfxIye1ip+f2WnxrkYfk/X8YZ6FWNQPaAX/iRwIDAQABAkEAk/VcAusrpIqA5Ac2P5Tj0VX3cOuXmyouaVcXonr7f+6y2YTjLQuAnkcfKKocQI/juIRQBFQIqqW/m1nmz1wGeQIhAO8XaA/KxzOIgU0l/4lm0A2Wne6RokJ9HLs1YpOzIUmVAiEA3Q9DQrpAlIuiT1yWAGSxA9RxcjUM/1kdVLTkv0avXWsCIE0X8woEjK7lOSwzMG6RpEx9YHdopjViOj1zPVH61KTxAiBmv/dlhqkJ4rV46fIXELZur0pj6WC3N7a4brR8a+CLLQIhAMQyerWl2cPNVtE/8tkziHKbwW3ZUiBXU24wFxedT9iV
 | 
			
		||||
 | 
			
		||||
--- ### 限流器配置
 | 
			
		||||
continew-starter:
 | 
			
		||||
  rate-limiter:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    key-prefix: RateLimiter
 | 
			
		||||
 | 
			
		||||
--- ### 文件上传配置
 | 
			
		||||
spring.servlet:
 | 
			
		||||
  multipart:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # 单文件上传大小限制
 | 
			
		||||
    max-file-size: 10MB
 | 
			
		||||
    # 单次总上传文件大小限制
 | 
			
		||||
    max-request-size: 20MB
 | 
			
		||||
## 头像配置
 | 
			
		||||
avatar:
 | 
			
		||||
  # 存储路径
 | 
			
		||||
  path: user/avatar/
 | 
			
		||||
  # 支持的后缀
 | 
			
		||||
  support-suffix: jpg,jpeg,png,gif
 | 
			
		||||
  type:
 | 
			
		||||
    GITEE:
 | 
			
		||||
      client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=gitee
 | 
			
		||||
    GITHUB:
 | 
			
		||||
      client-id: 38080dad08cfbdfacca9
 | 
			
		||||
      client-secret: 1f7d08**********5b7**********29e
 | 
			
		||||
      redirect-uri: ${project.url}/social/callback?source=github
 | 
			
		||||
  cache:
 | 
			
		||||
    type: REDIS
 | 
			
		||||
 | 
			
		||||
--- ### Snail Job 配置
 | 
			
		||||
snail-job:
 | 
			
		||||
 
 | 
			
		||||
@@ -14,76 +14,98 @@ project:
 | 
			
		||||
  contact:
 | 
			
		||||
    name: Charles7c
 | 
			
		||||
    email: charles7c@126.com
 | 
			
		||||
    url: https://blog.charles7c.top/about/me
 | 
			
		||||
    url: https://charles7c.top
 | 
			
		||||
  ## 许可协议信息配置
 | 
			
		||||
  license:
 | 
			
		||||
    name: Apache-2.0
 | 
			
		||||
    url: https://github.com/continew-org/continew-admin/blob/dev/LICENSE
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  # 记录信息
 | 
			
		||||
  includes:
 | 
			
		||||
    - DESCRIPTION
 | 
			
		||||
    - MODULE
 | 
			
		||||
    - REQUEST_HEADERS
 | 
			
		||||
    - REQUEST_BODY
 | 
			
		||||
    - IP_ADDRESS
 | 
			
		||||
    - BROWSER
 | 
			
		||||
    - OS
 | 
			
		||||
    - RESPONSE_HEADERS
 | 
			
		||||
    - RESPONSE_BODY
 | 
			
		||||
## 项目日志配置
 | 
			
		||||
logging:
 | 
			
		||||
  config: classpath:logback-spring.xml
 | 
			
		||||
--- ### 服务器配置
 | 
			
		||||
server:
 | 
			
		||||
  servlet:
 | 
			
		||||
    # 应用访问路径
 | 
			
		||||
    context-path: /
 | 
			
		||||
  ## Undertow 服务器配置
 | 
			
		||||
  undertow:
 | 
			
		||||
    # HTTP POST 请求内容的大小上限(默认 -1,不限制)
 | 
			
		||||
    max-http-post-size: -1
 | 
			
		||||
    # 以下的配置会影响 buffer,这些 buffer 会用于服务器连接的 IO 操作,有点类似 Netty 的池化内存管理
 | 
			
		||||
    # 每块 buffer的空间大小(越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可)
 | 
			
		||||
    buffer-size: 512
 | 
			
		||||
    # 是否分配的直接内存(NIO 直接分配的堆外内存)
 | 
			
		||||
    direct-buffers: true
 | 
			
		||||
    threads:
 | 
			
		||||
      # 设置 IO 线程数,它主要执行非阻塞的任务,它们会负责多个连接(默认每个 CPU 核心一个线程)
 | 
			
		||||
      io: 8
 | 
			
		||||
      # 阻塞任务线程池,当执行类似 Servlet 请求阻塞操作,Undertow 会从这个线程池中取得线程(它的值设置取决于系统的负载)
 | 
			
		||||
      worker: 256
 | 
			
		||||
 | 
			
		||||
--- ### 链路追踪配置
 | 
			
		||||
continew-starter.trace:
 | 
			
		||||
--- ### Spring 项目配置
 | 
			
		||||
spring:
 | 
			
		||||
  application:
 | 
			
		||||
    name: ${project.app-name}
 | 
			
		||||
  ## 环境配置
 | 
			
		||||
  profiles:
 | 
			
		||||
    # 启用的环境
 | 
			
		||||
    active: dev
 | 
			
		||||
    include:
 | 
			
		||||
      - generator
 | 
			
		||||
  main:
 | 
			
		||||
    # 允许定义重名的 bean 对象覆盖原有的 bean
 | 
			
		||||
    allow-bean-definition-overriding: true
 | 
			
		||||
    # 允许循环依赖
 | 
			
		||||
    allow-circular-references: true
 | 
			
		||||
 | 
			
		||||
--- ## 线程池配置(默认启用扩展配置,如未指定 corePoolSize、maxPoolSize 则根据机器配置自动设置)
 | 
			
		||||
spring.task:
 | 
			
		||||
  # 异步任务
 | 
			
		||||
  execution:
 | 
			
		||||
    thread-name-prefix: task-pool
 | 
			
		||||
    # 任务拒绝策略(默认 ABORT,不执行新任务,直接抛出 RejectedExecutionException 异常)
 | 
			
		||||
    # CALLER_RUNS:提交的任务在执行被拒绝时,会由提交任务的线程去执行
 | 
			
		||||
    rejected-policy: CALLER_RUNS
 | 
			
		||||
    pool:
 | 
			
		||||
      keep-alive: 300s
 | 
			
		||||
    shutdown:
 | 
			
		||||
      # 是否等待任务执行完成再关闭线程池(默认 false)
 | 
			
		||||
      await-termination: true
 | 
			
		||||
      # 等待时间
 | 
			
		||||
      await-termination-period: 30s
 | 
			
		||||
  # 定时任务
 | 
			
		||||
  scheduling:
 | 
			
		||||
    thread-name-prefix: schedule-pool
 | 
			
		||||
    # 任务拒绝策略(默认 ABORT,不执行新任务,直接抛出 RejectedExecutionException 异常)
 | 
			
		||||
    # CALLER_RUNS:提交的任务在执行被拒绝时,会由提交任务的线程去执行
 | 
			
		||||
    rejected-policy: CALLER_RUNS
 | 
			
		||||
    shutdown:
 | 
			
		||||
      # 是否等待任务执行完成再关闭线程池(默认 false)
 | 
			
		||||
      await-termination: true
 | 
			
		||||
      # 等待时间
 | 
			
		||||
      await-termination-period: 30s
 | 
			
		||||
 | 
			
		||||
--- ### 文件上传配置
 | 
			
		||||
spring.servlet:
 | 
			
		||||
  multipart:
 | 
			
		||||
    enabled: true
 | 
			
		||||
  trace-id-name: traceId
 | 
			
		||||
  ## TLog 配置
 | 
			
		||||
  tlog:
 | 
			
		||||
    enable-invoke-time-print: false
 | 
			
		||||
    pattern: '[$spanId][$traceId]'
 | 
			
		||||
    mdc-enable: false
 | 
			
		||||
 | 
			
		||||
--- ### 全局响应配置
 | 
			
		||||
continew-starter.web:
 | 
			
		||||
  response:
 | 
			
		||||
    # 是否开启国际化(默认:false)
 | 
			
		||||
    i18n: false
 | 
			
		||||
    # 自定义失败 HTTP 状态码(默认:200,建议业务和通信状态码区分)
 | 
			
		||||
    default-http-status-code-on-error: 200
 | 
			
		||||
    # 自定义成功响应码(默认:0)
 | 
			
		||||
    default-success-code: 0
 | 
			
		||||
    # 自定义成功提示(默认:ok)
 | 
			
		||||
    default-success-msg: ok
 | 
			
		||||
    # 自定义失败响应码(默认:1)
 | 
			
		||||
    default-error-code: 1
 | 
			
		||||
    # 自定义失败提示(默认:error)
 | 
			
		||||
    default-error-msg: error
 | 
			
		||||
    # 是否将原生异常错误信息填充到状态信息中
 | 
			
		||||
    origin-exception-using-detail-message: false
 | 
			
		||||
    # 响应类全名(配置后 response-style 将不再生效)
 | 
			
		||||
    response-class-full-name: top.continew.starter.web.model.R
 | 
			
		||||
 | 
			
		||||
--- ### 全局树结构配置(简单树,对应前端 UI)
 | 
			
		||||
continew-starter.crud:
 | 
			
		||||
  tree:
 | 
			
		||||
    id-key: key
 | 
			
		||||
    name-key: title
 | 
			
		||||
    weight-key: sort
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:密码编码器配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  password:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # BCryptPasswordEncoder(如有改动,需同步调整 top.continew.admin.common.config.mybatis.BCryptEncryptor)
 | 
			
		||||
    encoding-id: bcrypt
 | 
			
		||||
    # 单文件上传大小限制
 | 
			
		||||
    max-file-size: 10MB
 | 
			
		||||
    # 单次总上传文件大小限制
 | 
			
		||||
    max-request-size: 20MB
 | 
			
		||||
## 头像配置
 | 
			
		||||
avatar:
 | 
			
		||||
  # 存储路径
 | 
			
		||||
  path: user/avatar/
 | 
			
		||||
  # 支持的后缀
 | 
			
		||||
  support-suffix: jpg,jpeg,png,gif
 | 
			
		||||
 | 
			
		||||
--- ### 接口文档配置
 | 
			
		||||
springdoc:
 | 
			
		||||
  api-docs:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    path: /v3/api-docs
 | 
			
		||||
  swagger-ui:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    path: /swagger-ui
 | 
			
		||||
  # 设置对象型参数的展示形式(设为 true 表示将对象型参数平展开,即对象内的属性直接作为参数展示而不是嵌套在对象内,默认 false)
 | 
			
		||||
  # 如果不添加该全局配置,可以在需要如此处理的对象参数类上使用 @ParameterObject
 | 
			
		||||
  default-flat-param-object: true
 | 
			
		||||
@@ -134,6 +156,74 @@ knife4j:
 | 
			
		||||
    # 自定义 footer 内容,支持 Markdown 语法
 | 
			
		||||
    footer-custom-content: 'Copyright © 2022-present [${project.contact.name}](${project.contact.url}) ⋅ [${project.name}](${project.url}) v${project.version}'
 | 
			
		||||
 | 
			
		||||
--- ### 全局响应配置
 | 
			
		||||
continew-starter.web:
 | 
			
		||||
  response:
 | 
			
		||||
    # 是否开启国际化(默认:false)
 | 
			
		||||
    i18n: false
 | 
			
		||||
    # 自定义失败 HTTP 状态码(默认:200,建议业务和通信状态码区分)
 | 
			
		||||
    default-http-status-code-on-error: 200
 | 
			
		||||
    # 自定义成功响应码(默认:0)
 | 
			
		||||
    default-success-code: 0
 | 
			
		||||
    # 自定义成功提示(默认:ok)
 | 
			
		||||
    default-success-msg: ok
 | 
			
		||||
    # 自定义失败响应码(默认:1)
 | 
			
		||||
    default-error-code: 1
 | 
			
		||||
    # 自定义失败提示(默认:error)
 | 
			
		||||
    default-error-msg: error
 | 
			
		||||
    # 是否将原生异常错误信息填充到状态信息中
 | 
			
		||||
    origin-exception-using-detail-message: false
 | 
			
		||||
    # 响应类全名(配置后 response-style 将不再生效)
 | 
			
		||||
    response-class-full-name: top.continew.starter.web.model.R
 | 
			
		||||
 | 
			
		||||
--- ### 日志配置
 | 
			
		||||
## API 请求/响应日志配置
 | 
			
		||||
continew-starter.log:
 | 
			
		||||
  # 记录信息
 | 
			
		||||
  includes:
 | 
			
		||||
    - DESCRIPTION
 | 
			
		||||
    - MODULE
 | 
			
		||||
    - REQUEST_HEADERS
 | 
			
		||||
    - REQUEST_BODY
 | 
			
		||||
    - IP_ADDRESS
 | 
			
		||||
    - BROWSER
 | 
			
		||||
    - OS
 | 
			
		||||
    - RESPONSE_HEADERS
 | 
			
		||||
    - RESPONSE_BODY
 | 
			
		||||
## 项目日志配置
 | 
			
		||||
logging:
 | 
			
		||||
  config: classpath:logback-spring.xml
 | 
			
		||||
 | 
			
		||||
--- ### 链路追踪配置
 | 
			
		||||
continew-starter.trace:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  trace-id-name: traceId
 | 
			
		||||
  ## TLog 配置
 | 
			
		||||
  tlog:
 | 
			
		||||
    enable-invoke-time-print: false
 | 
			
		||||
    pattern: '[$spanId][$traceId]'
 | 
			
		||||
    mdc-enable: false
 | 
			
		||||
 | 
			
		||||
--- ### 全局树结构配置(简单树,对应前端 UI)
 | 
			
		||||
continew-starter.crud:
 | 
			
		||||
  tree:
 | 
			
		||||
    id-key: key
 | 
			
		||||
    name-key: title
 | 
			
		||||
    weight-key: sort
 | 
			
		||||
 | 
			
		||||
--- ### 安全配置:密码编码器配置
 | 
			
		||||
continew-starter.security:
 | 
			
		||||
  password:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    # BCryptPasswordEncoder(如有改动,需同步调整 top.continew.admin.common.config.mybatis.BCryptEncryptor)
 | 
			
		||||
    encoding-id: bcrypt
 | 
			
		||||
 | 
			
		||||
--- ### 限流器配置
 | 
			
		||||
continew-starter:
 | 
			
		||||
  rate-limiter:
 | 
			
		||||
    enabled: true
 | 
			
		||||
    key-prefix: RateLimiter
 | 
			
		||||
 | 
			
		||||
--- ### Sa-Token 配置
 | 
			
		||||
sa-token:
 | 
			
		||||
  # Token 名称(同时也是 cookie 名称)
 | 
			
		||||
@@ -228,70 +318,3 @@ auth:
 | 
			
		||||
      - /auth/logout
 | 
			
		||||
      - /system/user/password
 | 
			
		||||
 | 
			
		||||
--- ### 服务器配置
 | 
			
		||||
server:
 | 
			
		||||
  servlet:
 | 
			
		||||
    # 应用访问路径
 | 
			
		||||
    context-path: /
 | 
			
		||||
  ## Undertow 服务器配置
 | 
			
		||||
  undertow:
 | 
			
		||||
    # HTTP POST 请求内容的大小上限(默认 -1,不限制)
 | 
			
		||||
    max-http-post-size: -1
 | 
			
		||||
    # 以下的配置会影响 buffer,这些 buffer 会用于服务器连接的 IO 操作,有点类似 Netty 的池化内存管理
 | 
			
		||||
    # 每块 buffer的空间大小(越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可)
 | 
			
		||||
    buffer-size: 512
 | 
			
		||||
    # 是否分配的直接内存(NIO 直接分配的堆外内存)
 | 
			
		||||
    direct-buffers: true
 | 
			
		||||
    threads:
 | 
			
		||||
      # 设置 IO 线程数,它主要执行非阻塞的任务,它们会负责多个连接(默认每个 CPU 核心一个线程)
 | 
			
		||||
      io: 8
 | 
			
		||||
      # 阻塞任务线程池,当执行类似 Servlet 请求阻塞操作,Undertow 会从这个线程池中取得线程(它的值设置取决于系统的负载)
 | 
			
		||||
      worker: 256
 | 
			
		||||
 | 
			
		||||
--- ### Spring 配置
 | 
			
		||||
spring:
 | 
			
		||||
  application:
 | 
			
		||||
    name: ${project.app-name}
 | 
			
		||||
  main:
 | 
			
		||||
    # 允许定义重名的 bean 对象覆盖原有的 bean
 | 
			
		||||
    allow-bean-definition-overriding: true
 | 
			
		||||
    # 允许循环依赖
 | 
			
		||||
    allow-circular-references: true
 | 
			
		||||
  ## 环境配置
 | 
			
		||||
  profiles:
 | 
			
		||||
    # 启用的环境
 | 
			
		||||
    active: dev
 | 
			
		||||
    include:
 | 
			
		||||
      - generator
 | 
			
		||||
  ## 线程池配置(默认启用扩展配置,如未指定 corePoolSize、maxPoolSize 则根据机器配置自动设置)
 | 
			
		||||
  task:
 | 
			
		||||
    # 异步任务
 | 
			
		||||
    execution:
 | 
			
		||||
      thread-name-prefix: task-pool
 | 
			
		||||
      # 任务拒绝策略(默认 ABORT,不执行新任务,直接抛出 RejectedExecutionException 异常)
 | 
			
		||||
      # CALLER_RUNS:提交的任务在执行被拒绝时,会由提交任务的线程去执行
 | 
			
		||||
      rejected-policy: CALLER_RUNS
 | 
			
		||||
      pool:
 | 
			
		||||
        keep-alive: 300s
 | 
			
		||||
      shutdown:
 | 
			
		||||
        # 是否等待任务执行完成再关闭线程池(默认 false)
 | 
			
		||||
        await-termination: true
 | 
			
		||||
        # 等待时间
 | 
			
		||||
        await-termination-period: 30s
 | 
			
		||||
    # 定时任务
 | 
			
		||||
    scheduling:
 | 
			
		||||
      thread-name-prefix: schedule-pool
 | 
			
		||||
      # 任务拒绝策略(默认 ABORT,不执行新任务,直接抛出 RejectedExecutionException 异常)
 | 
			
		||||
      # CALLER_RUNS:提交的任务在执行被拒绝时,会由提交任务的线程去执行
 | 
			
		||||
      rejected-policy: CALLER_RUNS
 | 
			
		||||
      shutdown:
 | 
			
		||||
        # 是否等待任务执行完成再关闭线程池(默认 false)
 | 
			
		||||
        await-termination: true
 | 
			
		||||
        # 等待时间
 | 
			
		||||
        await-termination-period: 30s
 | 
			
		||||
 | 
			
		||||
--- ### 健康检查配置
 | 
			
		||||
management.health:
 | 
			
		||||
  mail:
 | 
			
		||||
    # 关闭邮箱健康检查(邮箱配置错误或邮箱服务器不可用时,健康检查会报错)
 | 
			
		||||
    enabled: false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user