first commit
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

This commit is contained in:
lzh
2025-12-31 11:48:19 +08:00
commit 8ccfafe2bb
4541 changed files with 372105 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
spring:
main:
lazy-initialization: true # 开启懒加载,加快速度
banner-mode: off # 单元测试,禁用 Banner
# 数据源配置项
datasource:
name: ruoyi-vue-pro
url: jdbc:h2:mem:testdb;MODE=MYSQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=value; # MODE 使用 MySQL 模式DATABASE_TO_UPPER 配置表和字段使用小写
driver-class-name: org.h2.Driver
username: sa
password:
druid:
async-init: true # 单元测试,异步初始化 Druid 连接池,提升启动速度
initial-size: 1 # 单元测试,配置为 1提升启动速度
sql:
init:
schema-locations: classpath:/sql/create_tables.sql
mybatis-plus:
lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试
type-aliases-package: ${viewsh.info.base-package}.module.*.dal.dataobject
# 日志配置
logging:
level:
com.viewsh.module.iot.service.rule.scene.matcher: DEBUG
com.viewsh.module.iot.service.rule.scene.matcher.IotSceneRuleMatcherManager: INFO
com.viewsh.module.iot.service.rule.scene.matcher.condition: DEBUG
com.viewsh.module.iot.service.rule.scene.matcher.trigger: DEBUG
root: WARN
--- #################### 定时任务相关配置 ####################
--- #################### 配置中心相关配置 ####################
--- #################### 服务保障相关配置 ####################
# Lock4j 配置项(单元测试,禁用 Lock4j
--- #################### 监控相关配置 ####################
--- #################### 芋道相关配置 ####################
# 芋道配置项,设置当前项目所有自定义的配置
viewsh:
info:
base-package: com.viewsh
tenant: # 多租户相关配置项
enable: true
xss:
enable: false
demo: false # 关闭演示模式