From 0fe78f54ea5dcb78ebeeabfdcfa3963d75063b4f Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 6 May 2023 18:43:21 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E9=85=8D=E7=BD=AEmysql=20redis=20?= =?UTF-8?q?=E4=BD=BF=E7=94=A8embedded=20=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/resources/application.properties | 4 ++-- .../system-setting/src/test/resources/application.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/services/project-management/src/test/resources/application.properties b/backend/services/project-management/src/test/resources/application.properties index 0f65ecb2f4..efef6fcdcc 100644 --- a/backend/services/project-management/src/test/resources/application.properties +++ b/backend/services/project-management/src/test/resources/application.properties @@ -13,7 +13,7 @@ quartz.properties.org.quartz.jobStore.acquireTriggersWithinLock=true # logging.file.path=/opt/metersphere/logs/metersphere # Hikari -spring.datasource.url=jdbc:mysql://localhost:${embedded.mysql.port}/test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://${embedded.mysql.host}:${embedded.mysql.port}/test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 spring.datasource.username=${embedded.mysql.user} spring.datasource.password=${embedded.mysql.password} spring.datasource.type=com.zaxxer.hikari.HikariDataSource @@ -66,7 +66,7 @@ management.endpoints.web.exposure.include=* management.endpoints.enabled-by-default=false # redis spring.session.timeout=43200s -spring.data.redis.host=localhost +spring.data.redis.host=${embedded.redis.host} spring.data.redis.password=${embedded.redis.password} spring.data.redis.port=${embedded.redis.port} spring.session.redis.repository-type=indexed diff --git a/backend/services/system-setting/src/test/resources/application.properties b/backend/services/system-setting/src/test/resources/application.properties index 0f65ecb2f4..efef6fcdcc 100644 --- a/backend/services/system-setting/src/test/resources/application.properties +++ b/backend/services/system-setting/src/test/resources/application.properties @@ -13,7 +13,7 @@ quartz.properties.org.quartz.jobStore.acquireTriggersWithinLock=true # logging.file.path=/opt/metersphere/logs/metersphere # Hikari -spring.datasource.url=jdbc:mysql://localhost:${embedded.mysql.port}/test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://${embedded.mysql.host}:${embedded.mysql.port}/test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 spring.datasource.username=${embedded.mysql.user} spring.datasource.password=${embedded.mysql.password} spring.datasource.type=com.zaxxer.hikari.HikariDataSource @@ -66,7 +66,7 @@ management.endpoints.web.exposure.include=* management.endpoints.enabled-by-default=false # redis spring.session.timeout=43200s -spring.data.redis.host=localhost +spring.data.redis.host=${embedded.redis.host} spring.data.redis.password=${embedded.redis.password} spring.data.redis.port=${embedded.redis.port} spring.session.redis.repository-type=indexed