You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. server:
  2. servlet:
  3. context-path: /
  4. port: 8080
  5. spring:
  6. application:
  7. name: matrix-spray
  8. config:
  9. import: "classpath:factory-reset.yml"
  10. datasource:
  11. url: jdbc:sqlite:db/app.db
  12. driver-class-name: org.sqlite.JDBC
  13. sql:
  14. init:
  15. # always embedded never
  16. mode: always
  17. schema-locations: classpath:/sql/init.sql
  18. mybatis-plus:
  19. configuration:
  20. # 开启 SQL 日志输出(可选)
  21. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  22. # 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations:
  23. mapper-locations: classpath*:mapper/*.xml
  24. # 可选:开启 SQL 打印,调试时方便查看
  25. logging:
  26. level:
  27. root: INFO
  28. org.mybatis: DEBUG
  29. springdoc:
  30. default-flat-param-object: true
  31. jwt:
  32. enabled: false # 是否启用权限认证,设置为 true 启用,false 禁用
  33. #与设备TCP链接
  34. tcp:
  35. enable: true # 是否开启 TCP 连接
  36. server-enable: true # 是否开启 TCP 连接
  37. # host: 127.0.0.1
  38. # host: 192.168.1.106
  39. # host: 192.168.1.140
  40. host: 192.168.100.168
  41. port: 9080
  42. reconnect: 5000 # 断线重连间隔(单位:毫秒)
  43. timeout: 10000 # 连接超时时间(单位:毫秒)
  44. feedback-timeout: 500000