application-dev.yml 1.6 KB

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