Redis 패키지 별도로 분리하여 다중 구성이 용이하도록 수정

This commit is contained in:
2024-11-23 21:15:14 +09:00
parent 4dc0a13203
commit e7232db2f3
22 changed files with 41 additions and 39 deletions

View File

@@ -15,13 +15,9 @@ import org.springframework.data.redis.repository.configuration.EnableRedisReposi
@Configuration
@EnableRedisRepositories(
basePackages = ["kr.co.vividnext.sodalive"],
basePackages = ["kr.co.vividnext.sodalive.redis.v1"],
redisTemplateRef = "redisTemplate",
excludeFilters = [
ComponentScan.Filter(
type = FilterType.REGEX,
pattern = ["kr\\.co\\.vividnext\\.sodalive\\.v2\\..*"]
),
ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
classes = [org.springframework.data.jpa.repository.JpaRepository::class]

View File

@@ -16,14 +16,8 @@ import java.time.Duration
@Configuration
@EnableRedisRepositories(
basePackages = ["kr.co.vividnext.sodalive.v2"],
basePackages = ["kr.co.vividnext.sodalive.redis.v2"],
redisTemplateRef = "valkeyTemplate",
includeFilters = [
ComponentScan.Filter(
type = FilterType.REGEX,
pattern = ["kr\\.co\\.vividnext\\.sodalive\\.v2\\..*"]
)
],
excludeFilters = [
ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,