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
51 lines
1.2 KiB
server:
|
|
servlet:
|
|
context-path: /
|
|
port: 8080
|
|
|
|
spring:
|
|
application:
|
|
name: matrix-spray
|
|
config:
|
|
import: "classpath:factory-reset.yml"
|
|
datasource:
|
|
url: jdbc:sqlite:db/app.db
|
|
driver-class-name: org.sqlite.JDBC
|
|
sql:
|
|
init:
|
|
# always embedded never
|
|
mode: always
|
|
schema-locations: classpath:/sql/init.sql
|
|
|
|
mybatis-plus:
|
|
configuration:
|
|
# 开启 SQL 日志输出(可选)
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# 如果需要加载 XML 文件(自定义 SQL),可配置 mapper-locations:
|
|
mapper-locations: classpath*:mapper/*.xml
|
|
|
|
# 可选:开启 SQL 打印,调试时方便查看
|
|
logging:
|
|
level:
|
|
root: INFO
|
|
org.mybatis: DEBUG
|
|
|
|
springdoc:
|
|
default-flat-param-object: true
|
|
|
|
jwt:
|
|
enabled: false # 是否启用权限认证,设置为 true 启用,false 禁用
|
|
|
|
#与设备TCP链接
|
|
tcp:
|
|
enable: true # 是否开启 TCP 连接
|
|
server-enable: true # 是否开启 TCP 连接
|
|
# host: 127.0.0.1
|
|
# host: 192.168.1.106
|
|
# host: 192.168.1.140
|
|
host: 192.168.100.168
|
|
port: 9080
|
|
reconnect: 5000 # 断线重连间隔(单位:毫秒)
|
|
timeout: 10000 # 连接超时时间(单位:毫秒)
|
|
feedback-timeout: 500000
|
|
|