application-dev.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. spring:
  2. main:
  3. allow-bean-definition-overriding: true
  4. autoconfigure:
  5. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  6. # redis通用配置 子服务可以自行配置进行覆盖
  7. redis:
  8. host: localhost
  9. port: 6379
  10. password:
  11. database: 0
  12. timeout: 10s
  13. ssl: false
  14. #jackson配置
  15. jackson:
  16. # 日期格式化
  17. date-format: yyyy-MM-dd HH:mm:ss
  18. serialization:
  19. # 格式化输出
  20. INDENT_OUTPUT: false
  21. # 忽略无法转换的对象
  22. fail_on_empty_beans: false
  23. deserialization:
  24. # 允许对象忽略json中不存在的属性
  25. fail_on_unknown_properties: false
  26. # redisson 配置
  27. redisson:
  28. # 线程池数量
  29. threads: 16
  30. # Netty线程池数量
  31. nettyThreads: 32
  32. # 传输模式
  33. transportMode: "NIO"
  34. # 单节点配置
  35. singleServerConfig:
  36. # 客户端名称
  37. clientName: ${ruoyi.name}
  38. # 最小空闲连接数
  39. connectionMinimumIdleSize: 32
  40. # 连接池大小
  41. connectionPoolSize: 64
  42. # 连接空闲超时,单位:毫秒
  43. idleConnectionTimeout: 10000
  44. # 命令等待超时,单位:毫秒
  45. timeout: 3000
  46. # 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。
  47. retryAttempts: 3
  48. # 命令重试发送时间间隔,单位:毫秒
  49. retryInterval: 1500
  50. # 发布和订阅连接的最小空闲连接数
  51. subscriptionConnectionMinimumIdleSize: 1
  52. # 发布和订阅连接池大小
  53. subscriptionConnectionPoolSize: 50
  54. # 单个连接最大订阅数量
  55. subscriptionsPerConnection: 5
  56. # DNS监测时间间隔,单位:毫秒
  57. dnsMonitoringInterval: 5000
  58. # redisson 缓存配置
  59. cacheGroup:
  60. # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置
  61. - groupId: redissonCacheMap
  62. # 组过期时间(脚本监控)
  63. ttl: 60000
  64. # 组最大空闲时间(脚本监控)
  65. maxIdleTime: 60000
  66. # 组最大长度
  67. maxSize: 0
  68. # 分布式锁 lock4j 全局配置
  69. lock4j:
  70. # 获取分布式锁超时时间,默认为 3000 毫秒
  71. acquire-timeout: 3000
  72. # 分布式锁的超时时间,默认为 30 毫秒
  73. expire: 30000
  74. # feign 配置
  75. feign:
  76. sentinel:
  77. enabled: true
  78. okhttp:
  79. enabled: true
  80. httpclient:
  81. enabled: false
  82. client:
  83. config:
  84. default:
  85. connectTimeout: 10000
  86. readTimeout: 10000
  87. compression:
  88. request:
  89. enabled: true
  90. response:
  91. enabled: true
  92. # 暴露监控端点
  93. management:
  94. endpoints:
  95. web:
  96. exposure:
  97. include: '*'