application-dev.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. server:
  2. port: 30045
  3. spring:
  4. application:
  5. name: application-web
  6. redis:
  7. host: 192.168.31.14
  8. port: 6379
  9. lettuce:
  10. pool:
  11. max-active: 5
  12. datasource:
  13. dynamic:
  14. primary: self #设置默认的数据源或者数据源组,默认值即为master
  15. strict: false #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候会抛出异常,不启动则使用默认数据源.
  16. datasource:
  17. #本项目使用
  18. self:
  19. url: jdbc:mysql://www.jihengcc.cn:17336/zhoudu_base?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  20. username: root
  21. password: 1q2w3e4r
  22. driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
  23. #本项目使用
  24. file:
  25. url: jdbc:mysql://www.jihengcc.cn:17336/zhoudu_base?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  26. username: root
  27. password: 1q2w3e4r
  28. driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
  29. hikari:
  30. max-pool-size: 1
  31. cn:
  32. jiheng:
  33. file:
  34. file-store-dir: download
  35. zip-out-dir: zip
  36. download-prefix: http://39.100.230.190:30045/
  37. jetcache:
  38. statIntervalMinutes: 15
  39. areaInCacheName: false
  40. hidePackages: top.jiheng.factory
  41. local:
  42. # 默认2小时本地缓存
  43. default:
  44. type: caffeine
  45. keyConvertor: fastjson
  46. expireAfterWriteInMillis: 3600000
  47. expireAfterAccessInMillis: 1800000
  48. # 長時本地緩存,主要用于要求时效一般
  49. longTime:
  50. type: caffeine
  51. keyConvertor: fastjson
  52. expireAfterWriteInMillis: 300000
  53. expireAfterAccessInMillis: 180000
  54. # 短時本地緩存,主要用于要求时效较高的配置
  55. shortTime:
  56. type: caffeine
  57. keyConvertor: fastjson
  58. expireAfterWriteInMillis: 60000
  59. expireAfterAccessInMillis: 40000
  60. remote:
  61. # 默认2小时的远程缓存
  62. default:
  63. type: redis
  64. expireAfterWriteInMillis: 43200000
  65. keyConvertor: fastjson
  66. valueEncoder: kryo
  67. valueDecoder: kryo
  68. poolConfig:
  69. minIdle: 5
  70. maxIdle: 20
  71. maxTotal: 50
  72. host: ${SPRING.REDIS.HOST:192.168.31.14}
  73. port: ${SPRING.REDIS.PORT:6379}
  74. # 长时远程緩存,主要用于要求时效要求一般的集中式缓存
  75. longTime:
  76. type: redis
  77. expireAfterWriteInMillis: 7200000
  78. keyConvertor: fastjson
  79. valueEncoder: kryo
  80. valueDecoder: kryo
  81. poolConfig:
  82. minIdle: 5
  83. maxIdle: 20
  84. maxTotal: 50
  85. host: ${SPRING.REDIS.HOST:192.168.31.14}
  86. port: ${SPRING.REDIS.PORT:6379}
  87. # 短時远程緩存,主要用于要求时效较高的集中式缓存
  88. shortTime:
  89. type: redis
  90. expireAfterWriteInMillis: 300000
  91. keyConvertor: fastjson
  92. valueEncoder: kryo
  93. valueDecoder: kryo
  94. poolConfig:
  95. minIdle: 5
  96. maxIdle: 20
  97. maxTotal: 50
  98. host: ${SPRING.REDIS.HOST:192.168.31.14}
  99. port: ${SPRING.REDIS.PORT:6379}