From 922f8232102808a96a1f18af82cfb9d998d31600 Mon Sep 17 00:00:00 2001 From: Kangmin Date: Thu, 9 Nov 2023 09:45:26 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20(main)=20RedisConfig=20=EC=A3=BC?= =?UTF-8?q?=EC=84=9D=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/team/sfe/server/domain/auth/domain/RefreshToken.kt | 2 +- src/main/kotlin/team/sfe/server/global/redis/RedisConfig.kt | 3 +-- .../kotlin/team/sfe/server/global/redis/RedisProperties.kt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/team/sfe/server/domain/auth/domain/RefreshToken.kt b/src/main/kotlin/team/sfe/server/domain/auth/domain/RefreshToken.kt index 9342b4f..ac2a0a9 100644 --- a/src/main/kotlin/team/sfe/server/domain/auth/domain/RefreshToken.kt +++ b/src/main/kotlin/team/sfe/server/domain/auth/domain/RefreshToken.kt @@ -11,7 +11,7 @@ class RefreshToken( val accountId: String, @Indexed - var token: String, + var token: String ) { fun updateToken(token: String) { this.token = token diff --git a/src/main/kotlin/team/sfe/server/global/redis/RedisConfig.kt b/src/main/kotlin/team/sfe/server/global/redis/RedisConfig.kt index 41fa58c..400aa57 100644 --- a/src/main/kotlin/team/sfe/server/global/redis/RedisConfig.kt +++ b/src/main/kotlin/team/sfe/server/global/redis/RedisConfig.kt @@ -6,10 +6,9 @@ import org.springframework.data.redis.connection.RedisConnectionFactory import org.springframework.data.redis.connection.RedisPassword import org.springframework.data.redis.connection.RedisStandaloneConfiguration import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory -import org.springframework.data.redis.core.RedisKeyValueAdapter import org.springframework.data.redis.repository.configuration.EnableRedisRepositories -@EnableRedisRepositories(enableKeyspaceEvents = RedisKeyValueAdapter.EnableKeyspaceEvents.ON_STARTUP) +@EnableRedisRepositories // (enableKeyspaceEvents = RedisKeyValueAdapter.EnableKeyspaceEvents.ON_STARTUP) @Configuration class RedisConfig( private val redisProperties: RedisProperties diff --git a/src/main/kotlin/team/sfe/server/global/redis/RedisProperties.kt b/src/main/kotlin/team/sfe/server/global/redis/RedisProperties.kt index 05d2c54..974709e 100644 --- a/src/main/kotlin/team/sfe/server/global/redis/RedisProperties.kt +++ b/src/main/kotlin/team/sfe/server/global/redis/RedisProperties.kt @@ -6,5 +6,5 @@ import org.springframework.boot.context.properties.ConfigurationProperties data class RedisProperties( val host: String, val port: Int, - val password: String, + val password: String )