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: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: root password: lsx@hfs?gln.lsc 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 # 连接测试查询 pool-name: DynamicHikariPool # 连接池名称 redis: host: 115.190.125.125 port: 6377 database: 0 timeout: 3000 lettuce: pool: max-active: 8 max-wait: -1ms max-idle: 8 min-idle: 0 # 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: http://115.190.125.125:9000 accessKey: minioadmin secretKey: minioadmin bucketName: dynamic-comments # 动态媒体本地存储配置 dynamic: media: upload: path: D:/marriage-media/dynamics/ # 本地存储路径 url: prefix: http://localhost:8083/media/ # 直接访问dynamic服务