# ============================================================
|
# TrafficAudit 后端外部配置(与 jar 同级即可生效,优先级高于 jar 内置配置)
|
# 部署到新机器后,请**至少**修改下面标注 TODO 的三处数据库配置!
|
# ============================================================
|
server:
|
port: 8080
|
app:
|
captcha:
|
required: false # 生产环境如需图形验证码,改为 true
|
spring:
|
datasource:
|
url: jdbc:mysql://127.0.0.1:3306/traffic_audit?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
|
username: root # TODO 改成你的 MySQL 账号
|
password: 请改成你的数据库密码 # TODO 改成你的 MySQL 密码
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
servlet:
|
multipart:
|
max-file-size: 100MB
|
max-request-size: 100MB
|
jackson:
|
date-format: yyyy-MM-dd HH:mm:ss
|
time-zone: Asia/Shanghai
|
mybatis-plus:
|
mapper-locations: classpath*:/mapper/**/*.xml
|
type-aliases-package: com.trafficaudit
|
configuration:
|
map-underscore-to-camel-case: true
|
global-config:
|
db-config:
|
id-type: auto
|
logic-delete-field: deleted
|
logic-delete-value: 1
|
logic-not-delete-value: 0
|
jwt:
|
# 必须是「Base64 合法字符 + 长度是 4 的倍数」;下面这串 32 位十六进制可直接用,
|
# 生产环境建议换成自己的随机串(填中文或不合法字符会导致登录 500)
|
secret: 8f2c1d64a7b34e09c5d81f6a2b0e7c93
|
expiration: 86400000
|
docs:
|
template-root: docs
|
city-passenger:
|
template-dir: docs/城市客运
|
passenger:
|
template-dir: docs/公路旅客
|
freight:
|
template-dir: docs/货运
|
energy:
|
template-dir: docs/能耗
|
investment:
|
template-dir: docs/投资/模板
|
summary:
|
template-dir: docs/生成汇总大表 # 汇总大表母版与版式参照件所在目录(必需)
|
deepseek:
|
api-key: "" # AI 分析用;留空则 AI 分析不可用
|
api-url: https://api.deepseek.com/v1/chat/completions
|
model: deepseek-chat
|