application-dev.yml 2.6 KB

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