application.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. spring:
  2. main:
  3. allow-bean-definition-overriding: true
  4. #jackson配置
  5. jackson:
  6. # 日期格式化
  7. date-format: yyyy-MM-dd HH:mm:ss
  8. serialization:
  9. # 格式化输出
  10. indent_output: false
  11. # 忽略无法转换的对象
  12. fail_on_empty_beans: false
  13. deserialization:
  14. # 允许对象忽略json中不存在的属性
  15. fail_on_unknown_properties: false
  16. # feign 配置
  17. feign:
  18. sentinel:
  19. enabled: true
  20. okhttp:
  21. enabled: true
  22. httpclient:
  23. enabled: false
  24. client:
  25. config:
  26. default:
  27. connectTimeout: 10000
  28. readTimeout: 10000
  29. compression:
  30. request:
  31. enabled: true
  32. response:
  33. enabled: true
  34. # 暴露监控端点
  35. management:
  36. endpoints:
  37. web:
  38. exposure:
  39. include: '*'
  40. # redisson 缓存配置
  41. redisson:
  42. cacheGroup:
  43. # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置
  44. - groupId: redissonCacheMap
  45. # 组过期时间(脚本监控)
  46. ttl: 60000
  47. # 组最大空闲时间(脚本监控)
  48. maxIdleTime: 60000
  49. # 组最大长度
  50. maxSize: 0
  51. # 分布式锁 lock4j 全局配置
  52. lock4j:
  53. # 获取分布式锁超时时间,默认为 3000 毫秒
  54. acquire-timeout: 3000
  55. # 分布式锁的超时时间,默认为 30 毫秒
  56. expire: 30000