Files
my-worker/web-fast/src/main/resources/config/application.yml
2025-10-13 12:16:30 +08:00

249 lines
6.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#======================================#
#========== Project settings ==========#
#======================================#
# 产品或项目名称、软件开发公司名称
productName: JeeSite Demo
companyName: ThinkGem
# 产品版本、版权年份
productVersion: V5.14
copyrightYear: 2025
# 是否演示模式
demoMode: false
# 专为分离端提供接口服务
apiMode: false
#======================================#
#========== Server settings ===========#
#======================================#
server:
port: 8980
servlet:
context-path: ~
register-default-servlet: false
# encoding.enabled: true
tomcat:
uri-encoding: UTF-8
# 表单请求数据的最大大小
max-http-form-post-size: 20MB
# # 客户端发送请求参数个数限制
# max-parameter-count: 10000
# # 文件上传的表单请求参数个数限制
# max-part-count: 50
# # 进程的最大连接数
# max-connections: 8192
# # 连接数满后的排队个数
# accept-count: 100
# # 线程数最大和最小个数
# threads:
# max: 200
# min-spare: 10
# 当 Nginx 为 httpstomcat 为 http 时,设置该选项为 true
schemeHttps: false
#======================================#
#========== Database sttings ==========#
#======================================#
# 数据库连接
jdbc:
# H2 数据库配置(请修改 /modules/core/pom.xml 文件,打开 H2 DB 依赖)
type: h2
driver: org.h2.Driver
url: jdbc:h2:~/jeesite-db/jeesite5140
username: jeesite
password: jeesite
testSql: SELECT 1
# 连接信息加密
encrypt:
# 加密连接用户名
username: false
# 加密连接密码
password: false
# 数据库连接池配置
pool:
# 初始化连接数
init: 1
# 最小空闲连接数
minIdle: 3
# 最大激活连接数
maxActive: 20
#======================================#
#========== Spring settings ===========#
#======================================#
spring:
# 应用程序名称
application:
name: jeesite-web-h2db
# 环境名称(注意:不可设置为 test 它是单元测试专用的名称)
profiles:
active: default
# 打印横幅
main:
banner-mode: "off"
lazy-initialization: true
# MVC 映射匹配策略
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
# 日志配置fatal、error、warn、info、debug
logging:
config: classpath:config/logback-spring.xml
# level:
# root: warn
# com.jeesite: debug
# MyBatis 相关
mybatis:
# Mapper文件刷新线程
mapper:
refresh:
enabled: true
#======================================#
#========== System settings ===========#
#======================================#
# 管理基础路径
adminPath: /a
# 前端基础路径
frontPath: /f
# Vue 资源文件访问路径,映射到 src/main/resources/{vuePath} 文件夹
# 如果设置的是 /vue则映射目录为src/main/resources/vue 文件夹
# 该资源映射功能,会自动处理 Vue 的 history 路由模式
vuePath: /vue
# 用户相关
user:
# 多租户模式SAAS模式专业版
useCorpModel: false
# 国际化管理(专业版)
lang:
enabled: true
# 任务调度(标准版)
job:
enabled: true
# 代码生成
gen:
enabled: true
# 系统监控
state:
enabled: true
#======================================#
#========= Framework settings =========#
#======================================#
# Shiro 相关
shiro:
# defaultPath: ${shiro.loginUrl}
defaultPath: ${vuePath}/login
# 登录相关设置
loginUrl: ${adminPath}/login
logoutUrl: ${shiro.loginUrl}
successUrl: ${adminPath}/index
# 简单 SSO 登录相关配置
sso:
# 如果启用/sso/{username}/{token}单点登录请修改此安全key并与单点登录系统key一致。
secretKey: ~
# 是否加密单点登录安全Key
encryptKey: true
# token 时效性1天yyyyMMdd、1小时yyyyMMddHH、1分钟yyyyMMddHHmm
encryptKeyDateFormat: yyyyMMdd
# 登录提交信息加密(如果不需要加密,设置为空即可)
loginSubmit:
# 加密用户名、密码、验证码后再提交key设置为3个用逗号分隔加密方式DES4.1.9及之前版本默认设置)
# v4.2.0+ 开始支持 Base64 加密方式,方便移动端及第三方系统处理认证,可直接设置 Key 为 Base644.2.0+默认设置)
#secretKey: thinkgem,jeesite,com
secretKey: Base64
#secretKey: ~
# 记住我密钥设置,你可以通过 com.jeesite.test.RememberMeKeyGen 类快速生成一个秘钥。
# 若不设置,则每次启动系统后自动生成一个新秘钥,这样会导致每次重启后,客户端记录的用户信息将失效。
rememberMe:
secretKey: ~
# 是否允许跨域访问 CORS如果允许设置允许的域名。v4.2.3 开始支持多个域名和模糊匹配例如http://*.jeesite.com,http://*.jeesite.net
accessControlAllowOrigin: '*'
# 允许跨域访问时 CORS可以获取和返回的方法和请求头
accessControlAllowMethods: GET, POST, OPTIONS
accessControlAllowHeaders: content-type, x-requested-with, x-ajax, x-token, x-remember
accessControlExposeHeaders: x-token, x-remember
# Session 相关
session:
# 会话唯一标识SessionId在Cookie中的名称。
sessionIdCookieName: h2db.jeesite.session.id
sessionIdCookiePath: ${server.servlet.context-path}
# Web 相关
web:
# 核心模块的Web功能开启其它微服务时设为false
core:
enabled: true
# 在线API文档
springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
# 错误页面500.html是否输出错误信息正式环境为提供安全性可设置为false
error:
page:
printErrorInfo: true
#======================================#
#======== FileUpload settings =========#
#======================================#
# 文件上传
file:
enabled: true
#======================================#
#========== Message settings ==========#
#======================================#
# 消息提醒中心(专业版)
msg:
enabled: true
#======================================#
#========== Project settings ==========#
#======================================#