server: port: 8060 spring: mvc: date-format: yyyy-MM-dd HH:mm:ss servlet: multipart: max-file-size: 50MB # 单个文件大小 max-request-size: 200MB # 单次请求总大小(多文件/表单整体上限,避免单文件没超但整体被拒) jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss redis: host: 127.0.0.1 port: 6379 database: 0 password: 123456 # 连接/命令超时:让后台探活(不可达时)快速失败,避免阻塞定时器线程;不影响正常请求 timeout: 500ms data: redis: repositories: enabled: false http: encoding: force: true charset: utf-8 enabled: true datasource: url: jdbc:mysql://localhost:3306/bsch_userbase?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver min-idle: 30 max-active: 30 #jpa jpa: database: MySQL show-sql: true hibernate: # 生产环境设置成 none,避免程序运行时自动更新数据库结构 ddl-auto: update database-platform: org.hibernate.dialect.MySQL5InnoDBDialect properties: hibernate.order_by.default_null_ordering: last hibernate: dialect: org.hibernate.dialect.MySQL5InnoDBDialect open-in-view: true #本地关闭rabbit rabbitmq: listener: direct: auto-startup: false simple: auto-startup: false # 单点登录 / 应用间签名鉴权(基础平台 yh-auth / yh-app-auth) yh: sso: server-url-prefix: http://sso.yunhaixingtong.com/cas/ client-host-url: http://localhost:8060 allow-headers: all allow-origins: all url-pattern: /api/* mobi-api-pattern: /mobiapi/* app-auth: enabled: true identity: # 允许调用 oapi/identity/switch 的应用 appKey 白名单(逗号分隔;100001=UserHome,后期会新增) switch-allowed-app-keys: 100001,100002,100009 # 接口文档(springdoc):分组见 SwaggerConfig(oapi=开放接口契约权威源 / api=业务接口) # 契约快照导出:GET /v3/api-docs/oapi # 生产环境关闭文档入口(spec JSON 与 UI 一并关,避免契约与内部端点外泄): # SPRINGDOC_API_DOCS_ENABLED=false SPRINGDOC_SWAGGER_UI_ENABLED=false springdoc: api-docs: enabled: true swagger-ui: enabled: true # 健康检查(供 projman 健康总览探活,容器间直连 http://userbase-service:8060/userbase/actuator/health): # 只暴露 health 一个端点;show-details=never 不外泄 DB/Redis 等组件细节,仅返回总体状态 {"status":"UP"}; # rabbit 连通性不计入总体健康(推送链路故障不应判定用户中心整体不可用),本地无 rabbit 时同理避免误报 DOWN management: endpoints: web: exposure: # [LOADTEST-METRICS-BEGIN] 临时埋点:追加 prometheus 端点供压测观测(方案 §2.5), # 压测结束后把 include 改回 health。见《埋点移除清单.md》。 include: health,prometheus # [LOADTEST-METRICS-END] endpoint: health: show-details: never health: rabbit: enabled: false # 上传文件本地存储根目录(Linux 部署请通过环境变量/配置中心外置,避免写死 Windows 盘符) FILE_PATH: D://bsch//bschlearn # 上传文件对外访问的 Web 根地址,须与 MyWebAppConfigurer 中的 /upload/{子目录}/ 映射保持一致 FILE_WEB_PATH: http://localhost:8060/upload/ UPLOAD_WEB_PATH_HTTP: http://localhost:8060/upload/file/