加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
device-demo.yml 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
高元泰 提交于 2022-06-26 15:28 . update device-demo.yml.
logging:
level:
# tk.mybatis: INFO
cn.turing.firecontrol: DEBUG
server:
port: 2222
spring:
application:
name: turing-device
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
# boot:
# admin:
# url: http://192.168.0.22:8766
# client:
# prefer-ip: true
redis:
host: 43.142.35.71
port: 6379
password: 123456
database: 0
maxIdle: 100 # 最小链接池数量
max-active: 300 # 最大连接池数量(缺省值:8)
max-wait: 10000
rabbitmq:
host: 43.142.35.71
port: 5672
username: root
password: 123456
dynamic: true
virtual-host: /
elasticsearch:
cluster-name: my-application
cluster-nodes: 127.0.0.1:9601,127.0.0.1:9602,127.0.0.1:9603
rest:
username: esuser
password: Itat@pros
uris:
- http://127.0.0.1:9201
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://43.142.35.71:3306/turing-device?characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
username: root
password: 123456
initial-size: 5 # 初始化时建立物理连接的个数
min-idle: 5 # 最小链接池数量
max-active: 20
# 最大连接池数量(缺省值:8)
max-wait: 60000
# 获取连接时最大等待时间,单位毫秒。
druid:
stat-view-servlet:
loginUsername: root
loginPassword: 123456
#配置数据库
mybatis:
basepackage: cn.turing.firecontrol.device.mapper
xmlLocation: classpath:mapper/**/*.xml
mapper-locations: "classpath*:mapper/*.xml"
configuration:
cache-enabled: false
map-underscore-to-camel-case: true
# 配置swagger
swagger:
enabled: true
base-package: cn.turing.firecontrol.device
title: 消防大数据
version: 1.0.0.SNAPSHOT
description: 设备管理服务
contact:
name: 北京维数科技有限公司
# global-operation-parameters[0]:
# name: Authorization
# description: access_token
# modelRef: string
# parameterType: header
# required: true
# 配置用户认证和服务认证信息
auth:
serviceId: turing-auth
user:
token-header: Authorization
limit-expire: 1440 # 一天过去,单位分钟
client:
id: turing-device
secret: 123456
token-header: client-token
mapper:
mappers: cn.turing.firecontrol.common.mapper.CommonMapper
# 配置萤石开放平台账号
yingShi:
appKey:
appSecret:
# 小花儿人工智能图像识别接口
xiaoHuaErAI:
appCode:
accuracyThreshold: 0.8 #accuracy>0.8 表示有很大可能发生火灾
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化