application-dev.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # 端口
  2. server:
  3. port: 8099
  4. spring:
  5. # 数据源配置
  6. datasource:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. url: jdbc:mysql://127.0.0.1:3306/smart_face?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
  9. username: root
  10. password: 123456
  11. # 是否打开sql监控台 (生产环境请务必关闭此选项)
  12. druid:
  13. stat-view-servlet:
  14. enabled: true
  15. web-stat-filter:
  16. enabled: true
  17. filter:
  18. config:
  19. enabled: true
  20. # redis配置
  21. redis:
  22. # Redis数据库索引(默认为0)
  23. database: 1
  24. # Redis服务器地址
  25. host: 127.0.0.1
  26. # Redis服务器连接端口
  27. port: 6379
  28. # Redis服务器连接密码(默认为空)
  29. # password:
  30. # 连接超时时间(毫秒)
  31. timeout: 1000ms
  32. lettuce:
  33. pool:
  34. # 连接池最大连接数
  35. max-active: 200
  36. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  37. max-wait: -1ms
  38. # 连接池中的最大空闲连接
  39. max-idle: 10
  40. # 连接池中的最小空闲连接
  41. min-idle: 0
  42. # 项目自定义配置
  43. myconfig:
  44. # 本项目部署到的服务器域名(文件上传等等模块 要用到)
  45. domain: http://127.0.0.1:8099
  46. ip: 192.168.3.27
  47. heart-port: 9999
  48. command-port: 8888
  49. command-prefix: "command:"
  50. heart-prefix: "heart:"