application-dev.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # 项目配置
  2. like:
  3. upload-directory: D:/opt/camera/
  4. l2:
  5. host: 168.15.14.1
  6. port: 4567
  7. maxRetries: 10
  8. retryInterval: 5000
  9. # 服务配置
  10. server:
  11. port: 28080
  12. servlet:
  13. context-path: /
  14. # 框架配置
  15. spring:
  16. # 数据源配置
  17. datasource:
  18. url: jdbc:mysql://192.168.110.130:13306/taphole?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
  19. type: com.alibaba.druid.pool.DruidDataSource # 数据源类型
  20. driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
  21. username: root # 数据库账号
  22. password: root # 数据库密码
  23. # Redis配置
  24. redis:
  25. host: 192.168.110.130 # Redis服务地址
  26. port: 16379 # Redis端口
  27. password: # Redis密码
  28. database: 5 # 数据库索引
  29. # lettuce:
  30. # pool:
  31. # max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
  32. # max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
  33. # max-idle: 20 # 连接池中的最大空闲连接(默认8)
  34. # min-idle: 0 # 连接池中的最小空闲连接(默认0)
  35. # Mybatis-plus配置 【是否开启SQL日志输出】
  36. socketio:
  37. # host: 127.0.0.1 #主机名,默认是 0.0.0.0 (这个设不设置无所谓,因为后面的 SocketConfig 类一般不用设置这个)
  38. port: 33000 #监听端口
  39. maxFramePayloadLength: 1048576
  40. maxHttpContentLength: 1048576
  41. bossCount: 1
  42. workCount: 100
  43. allowCustomRequests: true
  44. upgradeTimeout: 1000000 #协议升级超时时间(毫秒),默认10000。HTTP握手升级为ws协议超时时间
  45. pingTimeout: 6000000 #Ping消息超时时间(毫秒),默认60000,这个时间间隔内没有接收到心跳消息就会发送超时事件
  46. pingInterval: 25000 #Ping消息间隔(毫秒),默认25000。客户端向服务器发送一条心跳消息间隔
  47. # configuration:
  48. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl