Files
my-worker/web-fast/src/main/resources/config/application-prod.yml

42 lines
864 B
YAML
Raw Normal View History

2022-04-24 12:09:30 +08:00
# 使用环境配置,只需 JVM 参数里加:-Dspring.profiles.active=prod
# 数据库连接
jdbc:
# Mysql 数据库配置
type: h2
driver: org.h2.Driver
2025-10-13 12:16:30 +08:00
url: jdbc:h2:/data/jeesite-db/jeesite5140
2022-04-24 12:09:30 +08:00
username: jeesite
password: jeesite
testSql: SELECT 1
2022-04-24 17:48:16 +08:00
# 数据库连接池配置
pool:
# 初始化连接数
init: 1
# 最小连接数
minIdle: 3
# 最大连接数
maxActive: 20
2022-04-24 12:09:30 +08:00
# 日志配置
logging:
config: classpath:config/logback-spring-prod.xml
2022-04-24 12:09:30 +08:00
# MyBatis 相关
mybatis:
# Mapper文件刷新线程
mapper:
refresh:
enabled: false
2022-04-24 12:09:30 +08:00
# 文件相关
file:
# 文件上传根路径设置路径中不允许包含“userfiles”在指定目录中系统会自动创建userfiles目录如果不设置默认为contextPath路径
baseDir: /data