1 Star 0 Fork 46

杨远林 / fire_control_config_example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
device-demo.yml 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
杨远林 提交于 2021-02-02 17:39 . update device-demo.yml.
logging:
level:
# tk.mybatis: INFO
cn.turing.firecontrol: DEBUG
server:
port: 2222
spring:
application:
name: turing-device
datasource:
url: jdbc:mysql://192.168.29.137:3306/turing_device?useUnicode=true&characterEncoding=UTF8&useSSL=true
druid:
stat-view-servlet:
loginUsername: root
loginPassword: 123456
rabbitmq:
host: 192.168.29.137
port: 5672
username: admin
password: yyy000
elasticsearch:
cluster-name: elasticsearch
cluster-nodes: 192.168.29.137:9300
redis:
host: 192.168.29.137
port: 6379
password: root
timeout: 20000
#配置数据库
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 表示有很大可能发生火灾
1
https://gitee.com/yangyuanlin/fire_control_config_example.git
git@gitee.com:yangyuanlin/fire_control_config_example.git
yangyuanlin
fire_control_config_example
fire_control_config_example
master

搜索帮助