diff --git a/src/main/java/com/gcms/v3/domain/auth/service/impl/LogoutServiceImpl.java b/src/main/java/com/gcms/v3/domain/auth/service/impl/LogoutServiceImpl.java index 4e752bb..808549e 100644 --- a/src/main/java/com/gcms/v3/domain/auth/service/impl/LogoutServiceImpl.java +++ b/src/main/java/com/gcms/v3/domain/auth/service/impl/LogoutServiceImpl.java @@ -9,11 +9,13 @@ import com.gcms.v3.global.redis.RedisUtil; import com.gcms.v3.global.security.jwt.JwtTokenProvider; import jakarta.servlet.http.HttpServletRequest; +import jakarta.transaction.Transactional; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; @RequiredArgsConstructor @Service +@Transactional public class LogoutServiceImpl implements LogoutService { private final UserUtil userUtil; diff --git a/src/main/java/com/gcms/v3/global/redis/RedisConfig.java b/src/main/java/com/gcms/v3/global/redis/RedisConfig.java index 0e347f7..ddbfe37 100644 --- a/src/main/java/com/gcms/v3/global/redis/RedisConfig.java +++ b/src/main/java/com/gcms/v3/global/redis/RedisConfig.java @@ -1,6 +1,5 @@ package com.gcms.v3.global.redis; -import jakarta.transaction.Transactional; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -20,7 +19,6 @@ public RedisConnectionFactory redisConnectionFactory() { } @Bean - @Transactional public RedisTemplate redisTemplate() { RedisTemplate template = new RedisTemplate<>(); template.setValueSerializer(new StringRedisSerializer());