Redis 패키지 별도로 분리하여 다중 구성이 용이하도록 수정
This commit is contained in:
@@ -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]
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user