fix(docker): 对齐各版本项目的 Java 运行时镜像

fix(test): 修正 Redis 配置层级并适配 Spring Boot 版本
This commit is contained in:
YunaiV
2026-10-05 21:08:25 +08:00
parent 1697112f11
commit 244a5cfa01
5 changed files with 20 additions and 25 deletions
@@ -20,11 +20,10 @@ spring:
init:
schema-locations: classpath:/sql/create_tables.sql
data:
redis:
host: 127.0.0.1
port: 16379
database: 0
redis:
host: 127.0.0.1
port: 16379
database: 0
mybatis:
lazy-initialization: true
@@ -20,11 +20,10 @@ spring:
init:
schema-locations: classpath:/sql/create_tables.sql
data:
redis:
host: 127.0.0.1
port: 16379
database: 0
redis:
host: 127.0.0.1
port: 16379
database: 0
mybatis:
lazy-initialization: true
@@ -22,11 +22,10 @@ spring:
encoding: UTF-8
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
data:
redis:
host: 127.0.0.1 # 地址
port: 16379 # 端口(单元测试,使用 16379 端口)
database: 0 # 数据库索引
redis:
host: 127.0.0.1 # 地址
port: 16379 # 端口(单元测试,使用 16379 端口)
database: 0 # 数据库索引
mybatis:
lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试
@@ -20,11 +20,10 @@ spring:
init:
schema-locations: classpath:/sql/create_tables.sql
data:
redis:
host: 127.0.0.1
port: 16379
database: 0
redis:
host: 127.0.0.1
port: 16379
database: 0
mybatis:
lazy-initialization: true
@@ -19,11 +19,10 @@ spring:
init:
schema-locations: classpath:/sql/create_tables.sql
data:
redis:
host: 127.0.0.1 # 地址
port: 16379 # 端口(单元测试,使用 16379 端口)
database: 0 # 数据库索引
redis:
host: 127.0.0.1 # 地址
port: 16379 # 端口(单元测试,使用 16379 端口)
database: 0 # 数据库索引
mybatis:
lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试