Files
MiddlePlatform/maibu-admin/src/main/resources/application-dev.yml
2026-04-21 10:07:28 +08:00

80 lines
3.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/fastbee?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: fastbee
password: maibu520
# redis 配置
redis:
host: localhost # 地址
port: 6379 # 端口,默认为6379
database: 3 # 数据库索引
#password: # 密码
timeout: 10s # 连接超时时间
lettuce:
pool:
min-idle: 0 # 连接池中的最小空闲连接
max-idle: 8 # 连接池中的最大空闲连接
max-active: 8 # 连接池的最大数据库连接数
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
# mqtt 配置
mqtt:
username: fastbee # 账号
password: fastbee # 密码
host-url: tcp://localhost:1883 # mqtt连接tcp地址
client-id: ${random.int} # 客户端Id,不能相同,采用随机数 ${random.value}
default-topic: test # 默认主题
timeout: 30 # 超时时间
keepalive: 30 # 保持连接
clearSession: true # 清除会话(设置为false,断开连接,重连后使用原来的会话 保留订阅的主题,能接收离线期间的消息)
servlet:
multipart:
enabled: true
max-file-size: 10MB
max-request-size: 10MB
# 日志配置
log:
path: ./logs
logging:
level:
com.fastbee: debug
com.yomahub: debug
org.dromara: warn
org.springframework: warn
# Swagger配置
swagger:
enabled: true # 是否开启swagger
pathMapping: /dev-api # 请求前缀
ali:
sms:
access-key-id: LTAI5tFxmTZAeFBNa7sqcHUj
access-key-secret: vtHYhEWrh585jleku55TbHhtYscmGU
endpoint: dysmsapi.aliyuncs.com
sign-name: 飒沓机器人
template-code: SMS_498590140
expired-time: 1
UAV:
token: eyJhbGciOiJIUzUxMiIsImNyaXQiOlsidHlwIiwiYWxnIiwia2lkIl0sImtpZCI6IjhiZmRiZmRkLWM4OGYtNGE5Yi04NzI3LWQ0ZGYzYWE5OTJlOSIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiODQ5MDczQHFxLmNvbSIsImV4cCI6MjA1OTg2ODc3NCwibmJmIjoxNzQ0MzM1OTc0LCJvcmdhbml6YXRpb25fdXVpZCI6ImYwMmIwZTM4LWUyZjgtNGNhMi04ZTBmLWM1YmVlMTM3NDk2ZiIsInByb2plY3RfdXVpZCI6IiIsInN1YiI6ImZoMiIsInVzZXJfaWQiOiIxMDEyOSJ9.t9KH3SOBNxJwi3bZwA7diGV7qeLZY2cXI9ovT5FnkWXLjSHNYHD4KQObGi1iGJ5igAxZZaWIooT8v8VcPwsrSQ
projectUId: bb191b8f-5110-4536-82e3-f56730e93e4c
baseUrl: https://es-flight-api-cn.djigate.com
ioTDA:
serverIp: 2d8fd0f2a9.st1.iotda-device.cn-north-4.myhuaweicloud.com
deviceId: 698551ef7f2e6c302f519144_MC700AIR-CN-JS-1762486208349-0000001A-FD
secret: d940bccd7b591848eadab9a24d332d52
serviceId: MowingRobot
REGION_ID: cn-north-4
ENDPOINT: 2d8fd0f2a9.st1.iotda-app.cn-north-4.myhuaweicloud.com
ak: HPUAQHOL0WPXJ1BX3SDV
sk: 06B2ex4JkeGjE7PfWLsYt7PdXN2xvBxEjotPbkaQ
projectId: df32e2f94c15428a9763f01f4f0d337c
productId: 698551ef7f2e6c302f519144