application-prod.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # 开发环境配置
  2. server:
  3. port: 10015
  4. connectionTimeout: 120000
  5. servlet:
  6. session:
  7. timeout: -1
  8. spring:
  9. thymeleaf:
  10. cache: false
  11. datasource:
  12. dynamic:
  13. primary: master #设置默认的数据源或者数据源组,默认值即为master
  14. datasource:
  15. master:
  16. username: template_site
  17. password: EyrTP8bBJ4JdCiJ7
  18. driver-class-name: com.mysql.cj.jdbc.Driver
  19. url: jdbc:mysql://127.0.0.1:3306/template_site?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=GMT%2b8
  20. redis:
  21. host: 127.0.0.1 # Redis服务器地址
  22. database: 3 # Redis数据库索引(默认为0)
  23. port: 6379 # Redis服务器连接端口
  24. password: 123456 # Redis服务器连接密码(默认为空)
  25. jedis:
  26. pool:
  27. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  28. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  29. max-idle: 8 # 连接池中的最大空闲连接
  30. min-idle: 0 # 连接池中的最小空闲连接
  31. timeout: 3000ms # 连接超时时间(毫秒
  32. #日志
  33. logging:
  34. config: classpath:logback-spring.xml
  35. file:
  36. #文件上传目录 相对路径 末尾请加 /
  37. path: /uploadPath/