exam-api/exam-admin/target/classes/application-dev.yml

86 lines
2.5 KiB
YAML
Raw Normal View History

2025-07-09 15:58:36 +08:00
# 开发环境配置文件
spring:
# 数据库配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
2025-07-11 18:03:23 +08:00
url: jdbc:mysql://8.131.93.145:54081/yf_exam_lite?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
2025-07-09 15:58:36 +08:00
username: root
password: 1qaz!@#$
# druid相关配置
druid:
max-active: 5000
initial-size: 20
min-idle: 5
async-init: true
# 监控统计
filters: stat,wall
filter:
stat:
log-slow-sql: true
slow-sql-millis: 5000
wall:
config:
create-table-allow: false
alter-table-allow: false
drop-table-allow: false
truncate-allow: false
# 定时任务配置
quartz:
# 数据库方式
job-store-type: jdbc
# quartz 相关属性配置
properties:
org:
quartz:
scheduler:
instanceName: eamScheduler
instanceId: AUTO
jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: true
clusterCheckinInterval: 10000
useProperties: false
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
# 文件上传配置
conf:
upload:
# 物理文件存储位置,以/结束windows已正斜杠d:/exam-upload/
2025-07-11 18:03:23 +08:00
dir: D:/exam-upload/
2025-07-09 15:58:36 +08:00
# 访问地址,注意不要去除/upload/file/,此节点为虚拟标识符
# 如http://localhost:8101/upload/file/exam.jpg对应物理文件为/data/upload/exam.jpg
2025-07-11 18:03:23 +08:00
url: http://8.131.93.145:54012/upload/file/
2025-07-09 15:58:36 +08:00
# 允许上传的文件后缀
allow-extensions: jpg,jpeg,png
2025-07-11 18:03:23 +08:00
folder:
# 身份证正面存储文件夹名称
card_front_url: cardfront/
# 身份证背面存储文件夹名称
card_back_url: cardback/
# 身份证正反面复印件
card_copy_url: cardcopy/
# 证件照
photo_url: photo/
# 学历证明
certificate_url: certificate/
# 体检报告
physical_report_url: physicalreport/
# 签名图片
sign_picture_url: signpicture/
2025-07-09 15:58:36 +08:00
# 开启文档
swagger:
enable: true
logging:
level:
root: debug
path: logs/${spring.application.name}/