application.yml 2.2 KB

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