application.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. server:
  2. port: 8086
  3. spring:
  4. application:
  5. name: dynamic-service
  6. config:
  7. import:
  8. # 文件上传配置
  9. servlet:
  10. multipart:
  11. max-file-size: 10MB # 单个文件最大10MB
  12. max-request-size: 100MB # 单次请求最大100MB(支持多文件上传)
  13. enabled: true
  14. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  17. username: root
  18. password: lsx@hfs?gln.lsc
  19. hikari:
  20. minimum-idle: 5 # 最小空闲连接数
  21. maximum-pool-size: 20 # 最大连接池大小
  22. connection-timeout: 30000 # 连接超时时间(毫秒)30秒
  23. idle-timeout: 600000 # 空闲连接超时时间(毫秒)10分钟
  24. max-lifetime: 1800000 # 连接最大存活时间(毫秒)30分钟
  25. connection-test-query: SELECT 1 # 连接测试查询
  26. pool-name: DynamicHikariPool # 连接池名称
  27. redis:
  28. host: 115.190.125.125
  29. port: 6377
  30. database: 0
  31. timeout: 3000
  32. lettuce:
  33. pool:
  34. max-active: 8
  35. max-wait: -1ms
  36. max-idle: 8
  37. min-idle: 0
  38. # MyBatis-Plus 配置
  39. mybatis-plus:
  40. mapper-locations: classpath*:/mapper/**/*.xml
  41. type-aliases-package: com.zhentao.entity
  42. configuration:
  43. map-underscore-to-camel-case: true
  44. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  45. global-config:
  46. db-config:
  47. id-type: auto
  48. logic-delete-field: status
  49. logic-delete-value: 0
  50. logic-not-delete-value: 1
  51. # 日志配置
  52. logging:
  53. level:
  54. com.zhentao: debug
  55. com.zhentao.mapper: debug
  56. minio:
  57. endpoint: http://115.190.125.125:9000
  58. accessKey: minioadmin
  59. secretKey: minioadmin
  60. bucketName: dynamic-comments
  61. # 动态媒体本地存储配置
  62. dynamic:
  63. media:
  64. upload:
  65. path: D:/marriage-media/dynamics/ # 本地存储路径
  66. url:
  67. prefix: http://localhost:8083/media/ # 直接访问dynamic服务