| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- server:
- port: 8086
- spring:
- application:
- name: dynamic-service
- config:
- import:
- # 文件上传配置
- servlet:
- multipart:
- max-file-size: 10MB # 单个文件最大10MB
- max-request-size: 100MB # 单次请求最大100MB(支持多文件上传)
- enabled: true
- datasource:
- url: jdbc:mysql://127.0.0.1:3306/hunlian?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
- username: root
- password: Futu@2028@
- driver-class-name: com.mysql.cj.jdbc.Driver
- # HikariCP 连接池配置
- hikari:
- minimum-idle: 5 # 最小空闲连接数
- maximum-pool-size: 20 # 最大连接池大小
- connection-timeout: 30000 # 连接超时时间(毫秒)30秒
- idle-timeout: 600000 # 空闲连接超时时间(毫秒)10分钟
- max-lifetime: 1800000 # 连接最大存活时间(毫秒)30分钟
- connection-test-query: SELECT 1 # 连接测试查询
- # Redis配置
- redis:
- host: 127.0.0.1
- port: 6377
- password: Futu@2028@ # 如果有密码请填写
- database: 0 # 使用数据库0
- timeout: 3000ms
- lettuce:
- pool:
- max-active: 8 # 连接池最大连接数
- max-idle: 8 # 连接池最大空闲连接数
- min-idle: 0 # 连接池最小空闲连接数
- max-wait: -1ms # 连接池最大阻塞等待时间
- # MyBatis-Plus 配置
- mybatis-plus:
- mapper-locations: classpath*:/mapper/**/*.xml
- type-aliases-package: com.zhentao.entity
- configuration:
- map-underscore-to-camel-case: true
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- global-config:
- db-config:
- id-type: auto
- logic-delete-field: status
- logic-delete-value: 0
- logic-not-delete-value: 1
- # 日志配置
- logging:
- level:
- com.zhentao: debug
- com.zhentao.mapper: debug
- minio:
- endpoint: api:zhongruanke:cn/minio
- accessKey: minioadmin
- secretKey: minioadmin123
- bucketName: minion-voice-files
- proofBucketName: proof-of-success
- # 动态媒体本地存储配置
- dynamic:
- media:
- upload:
- path: D:/marriage-media/dynamics/ # 本地存储路径
- url:
- prefix: http://localhost:8083/media/ # 直接访问dynamic服务
|