tools-dev.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. spring:
  2. # 数据源连接--start
  3. datasource:
  4. url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  5. username: developer
  6. password: 05bZ/OxTB:X+yd%1
  7. type: com.zaxxer.hikari.HikariDataSource
  8. hikari:
  9. minimum-idle: 5
  10. maximum-pool-size: 15
  11. auto-commit: true
  12. idle-timeout: 30000
  13. pool-name: DatebookHikariCP
  14. max-lifetime: 1800000
  15. connection-timeout: 30000
  16. connection-test-query: SELECT 1
  17. # 数据源连接--end
  18. redis:
  19. host: 192.168.2.100
  20. port: 6379
  21. #password: 123456
  22. #Redis数据库索引(默认为0)
  23. database: 0
  24. jedis:
  25. pool:
  26. max-active: 50
  27. #连接池最大阻塞等待时间(使用负值表示没有限制)
  28. max-wait: -1
  29. #连接池中的最大空闲连接
  30. max-idle: 20
  31. #连接池中的最小空闲连接
  32. min-idle: 2
  33. #连接超时时间(毫秒)
  34. timeout: 5000
  35. #整合mybatis
  36. mybatis:
  37. #加载Mybatis映射文件
  38. mapper-locations:
  39. - classpath:mapper/*.xml
  40. # 指定服务注册中心的地址
  41. eureka:
  42. instance:
  43. prefer-ip-address: true # 是否使用 ip 地址注册
  44. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  45. client:
  46. service-url: # 设置服务注册中心地址
  47. defaultZone: http://localhost:18000/eureka/
  48. # 日志配置
  49. logging:
  50. level:
  51. root: info
  52. com.caimei365.user.mapper: debug
  53. # swagger配置
  54. swagger:
  55. # swagger开启状态,true开启,false关闭
  56. enabled: true
  57. ui-config:
  58. operations-sorter: method
  59. # rocketmq 配置项,对应 RocketMQProperties 配置类
  60. rocketmq:
  61. name-server: 192.168.2.100:9876 # RocketMQ Namesrv
  62. producer:
  63. group: caimei_group # 生产者分组
  64. send-message-timeout: 3000 # 发送消息超时时间,单位:毫秒。默认为 3000 。
  65. # compress-message-body-threshold: 4096 # 消息压缩阀值,当消息体的大小超过该阀值后,进行消息压缩。默认为 4 * 1024B
  66. # max-message-size: 4194304 # 消息体的最大允许大小。。默认为 4 * 1024 * 1024B
  67. # retry-times-when-send-failed: 2 # 同步发送消息时,失败重试次数。默认为 2 次。
  68. # retry-times-when-send-async-failed: 2 # 异步发送消息时,失败重试次数。默认为 2 次。
  69. # retry-next-server: false # 发送消息给 Broker 时,如果发送失败,是否重试另外一台 Broker 。默认为 false
  70. # access-key: # Access Key ,可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/acl/user_guide.md 文档
  71. # secret-key: # Secret Key
  72. # enable-msg-trace: true # 是否开启消息轨迹功能。默认为 true 开启。可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/msg_trace/user_guide.md 文档
  73. # customized-trace-topic: RMQ_SYS_TRACE_TOPIC # 自定义消息轨迹的 Topic 。默认为 RMQ_SYS_TRACE_TOPIC 。
  74. # # Consumer 配置项
  75. # consumer:
  76. # listeners: # 配置某个消费分组,是否监听指定 Topic 。结构为 Map<消费者分组, <Topic, Boolean>> 。默认情况下,不配置表示监听。
  77. # erbadagang-consumer-group:
  78. # topic1: false # 关闭 test-consumer-group 对 topic1 的监听消费