Files
eip4-platform/platform-app/src/main/resources/application-dev.yml
zhengwr 3e642a8aae chore(dev): 本地 dev 数据源指向合并库 eip4(业务+流程同库)
把 eip4dev(业务)/eip4flow(流程)合并为单库 eip4,对齐生产单库拓扑,跨库报表(审批意见 act_hi_comment 等)可单连接直接 join。原分库保留作回滚。均经 SPRING_DATASOURCE_URL/FLOWABLE_JDBC_URL/BIZ_JDBC_URL 可覆盖。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 12:32:42 +08:00

61 lines
2.6 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.
# ============================================================================
# Spring profile「dev」—— 本地真实数据副本开发环境
# 启动:mvn spring-boot:run -Dspring-boot.run.profiles=dev
# 或:java -jar ... --spring.profiles.active=dev
# 数据源指向本地 PG15(localhost:5433/eip4dev),真实数据副本,完全脱离 5435。
# 刷新库:bash tools/local-devdb/build_devdb.sh --drop-target
#
# 三套 profile 说明:
# dev 本地真实数据副本(eip4dev),日常功能开发、联调,完全本地,无需网络
# local 本地自举最小集(eip4m0),CI/对拍/单元测试,数据极简
# 默认 指向客户库副本 5435,验收验证/性能基线用,需网络
# ============================================================================
server:
# F2-6 已根治:JWT 不再携带 roles,token 长度 <1KB,64KB 缓解配置已回收(恢复默认 8KB)。
port: 8093
spring:
datasource:
# 合并库 eip4:业务表 + flowable(act_*) 同库(对齐生产单库拓扑),跨库报表(审批意见等)可直接 join。
# 原分库 eip4dev(业务)/eip4flow(流程)保留作回滚。覆盖:SPRING_DATASOURCE_URL。
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5433/eip4?currentSchema=eip3}
username: zhengwr
password:
hikari:
maximum-pool-size: 10
read-only: false
# A10 W1:平台表(含 AI Agent)provisioning 已收敛到 Flyway(db/migration);原 spring.sql.init 自举移除。
eip4:
auth:
jwt:
secret: ${EIP4_AUTH_JWT_SECRET:dev-only-eip4-jwt-secret-change-me-in-production-0123456789}
expire-seconds: 28800 # 8h
issuer: eip4-platform
ai:
store: jdbc
llm:
repair:
enabled: ${EIP4_AI_LLM_REPAIR_ENABLED:false}
endpoint: ${EIP4_AI_LLM_REPAIR_ENDPOINT:}
api-key: ${EIP4_AI_LLM_REPAIR_API_KEY:}
model: ${EIP4_AI_LLM_REPAIR_MODEL:}
file:
root: ${EIP4_FILE_ROOT:./data/files}
script:
# F1-4b:改写后脚本根目录。相对路径按启动工作目录解析。
# 标准 jar 启动口径 cwd=eip4-platform(cd eip4-platform && java -jar platform-app/...),
# 故为 eip4-platform 相对的 tools/...(不要加 ../,否则解析到 eip3/tools 不存在 → 全线「改写后脚本未找到」)。
rewritten-root: tools/s3_rewriter/output/rewritten
flow:
# F2-7:flowable-service 部分查询慢(历史任务+候选人解析),放大超时
read-timeout-ms: 60000
connect-timeout-ms: 3000
max-retries: 0
logging:
level:
com.dsasp: DEBUG
org.springframework.jdbc.core: DEBUG