application-test.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. server:
  2. port: 40045
  3. spring:
  4. application:
  5. name: application-file
  6. redis:
  7. host: 39.100.230.190
  8. port: 8120
  9. password: jh1q2w3e4r
  10. database: 14
  11. lettuce:
  12. pool:
  13. max-active: 5
  14. datasource:
  15. dynamic:
  16. primary: self #设置默认的数据源或者数据源组,默认值即为master
  17. strict: false #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候会抛出异常,不启动则使用默认数据源.
  18. datasource:
  19. self:
  20. url: jdbc:mysql://39.100.230.190:8092/zhoudu_ceshi?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  21. username: root
  22. password: Jh@Jh2019!
  23. driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
  24. file:
  25. url: jdbc:mysql://39.100.230.190:8092/zhoudu_ceshi?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  26. username: root
  27. password: Jh@Jh2019!
  28. driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
  29. hikari:
  30. maximum-pool-size: 5
  31. cn:
  32. jiheng:
  33. file:
  34. file-store-dir: download
  35. zip-out-dir: zip
  36. download-prefix: https://s2t.jihengcc.cn/file/
  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:39.100.230.190}
  73. port: ${SPRING.REDIS.PORT:8120}
  74. password: ${SPRING.REDIS.PASSWORD:jh1q2w3e4r}
  75. # 长时远程緩存,主要用于要求时效要求一般的集中式缓存
  76. longTime:
  77. type: redis
  78. expireAfterWriteInMillis: 7200000
  79. keyConvertor: fastjson
  80. valueEncoder: kryo
  81. valueDecoder: kryo
  82. poolConfig:
  83. minIdle: 5
  84. maxIdle: 20
  85. maxTotal: 50
  86. host: ${SPRING.REDIS.HOST:39.100.230.190}
  87. port: ${SPRING.REDIS.PORT:8120}
  88. password: ${SPRING.REDIS.PASSWORD:jh1q2w3e4r}
  89. # 短時远程緩存,主要用于要求时效较高的集中式缓存
  90. shortTime:
  91. type: redis
  92. expireAfterWriteInMillis: 300000
  93. keyConvertor: fastjson
  94. valueEncoder: kryo
  95. valueDecoder: kryo
  96. poolConfig:
  97. minIdle: 5
  98. maxIdle: 20
  99. maxTotal: 50
  100. host: ${SPRING.REDIS.HOST:39.100.230.190}
  101. port: ${SPRING.REDIS.PORT:8120}
  102. password: ${SPRING.REDIS.PASSWORD:jh1q2w3e4r}