mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-24 16:21:53 +08:00
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
|
spring:
|
|||
|
main:
|
|||
|
lazy-initialization: true # 开启懒加载,加快速度
|
|||
|
banner-mode: off # 单元测试,禁用 Banner
|
|||
|
|
|||
|
--- #################### 数据库相关配置 ####################
|
|||
|
|
|||
|
spring:
|
|||
|
# 数据源配置项
|
|||
|
datasource:
|
|||
|
name: ruoyi-vue-pro
|
|||
|
url: jdbc:h2:mem:testdb;MODE=MYSQL;DATABASE_TO_UPPER=false; # 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
|
|||
|
|
|||
|
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
|||
|
redis:
|
|||
|
host: 127.0.0.1 # 地址
|
|||
|
port: 16379 # 端口(单元测试,使用 16379 端口)
|
|||
|
database: 0 # 数据库索引
|
|||
|
|
|||
|
mybatis-plus:
|
|||
|
lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试
|
|||
|
type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject
|
|||
|
|
|||
|
--- #################### 定时任务相关配置 ####################
|
|||
|
|
|||
|
--- #################### 配置中心相关配置 ####################
|
|||
|
|
|||
|
--- #################### 服务保障相关配置 ####################
|
|||
|
|
|||
|
# Lock4j 配置项(单元测试,禁用 Lock4j)
|
|||
|
|
|||
|
# Resilience4j 配置项
|
|||
|
|
|||
|
--- #################### 监控相关配置 ####################
|
|||
|
|
|||
|
--- #################### 芋道相关配置 ####################
|
|||
|
|
|||
|
# 芋道配置项,设置当前项目所有自定义的配置
|
|||
|
yudao:
|
|||
|
info:
|
|||
|
base-package: cn.iocoder.yudao
|