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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# MQTT 配置(是否启用 + 连接参数)
mqtt :
enabled : true # 是否启用 MQTT 客户端
jwt :
secret : "789&kLp23$87bnM90!789poI87&90lkJ78*90jhG78!90fdS78%90saD78^90xcV78&90zbN78!这是安全密钥1234567890"
expiration : 86400000
# Spring 核心配置:允许 Bean 定义覆盖(解决 Bean 重复定义冲突)
spring :
main :
allow-bean-definition-overriding : true # 缩进在 spring 下,作为子配置
# 数据库配置
datasource :
url : jdbc:mysql://120.46.151.248:3306/campus_water_management?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username : member
password : Hdp11008@
driver-class-name : com.mysql.cj.jdbc.Driver
# JPA 配置
jpa :
hibernate :
ddl-auto : update # 自动更新表结构(开发环境用,生产环境建议改为 none)
show-sql : true # 打印 SQL 语句
properties :
hibernate :
format_sql : true # 格式化 SQL 语句
jdbc.lob.non_contextual_creation : true # 解决 LOB 字段创建警告
dialect : org.hibernate.dialect.MySQL8Dialect # MySQL 8 方言
# 服务器编码配置
server :
servlet :
encoding :
charset : UTF-8
enabled : true
force : true
port : 8080