forked from codesquad-members-2023/FoodyMoody-team-06
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(be) #639: Redis를 사용하고 있지 않으므로 Redis 관련 로직 주석 처리
- Loading branch information
1 parent
f9beafa
commit fd784b9
Showing
4 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
be/src/main/java/com/foodymoody/be/common/config/RedisConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package com.foodymoody.be.common.config; | ||
|
||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.FilterType; | ||
import org.springframework.data.redis.connection.RedisConnectionFactory; | ||
import org.springframework.data.redis.core.RedisTemplate; | ||
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories; | ||
|
||
@Configuration | ||
@EnableRedisRepositories(excludeFilters = @ComponentScan.Filter( | ||
type = FilterType.ASSIGNABLE_TYPE, | ||
classes = com.foodymoody.be.feed_collection_comment.infra.persistence.jpa.FeedCollectionCommentJpaRepository.class) | ||
) | ||
public class RedisConfig { | ||
|
||
public RedisTemplate<?, ?> redisTemplate(RedisConnectionFactory connectionFactory) { | ||
RedisTemplate<?, ?> template = new RedisTemplate<>(); | ||
template.setConnectionFactory(connectionFactory); | ||
|
||
return template; | ||
} | ||
|
||
} | ||
//package com.foodymoody.be.common.config; | ||
// | ||
//import org.springframework.context.annotation.ComponentScan; | ||
//import org.springframework.context.annotation.Configuration; | ||
//import org.springframework.context.annotation.FilterType; | ||
//import org.springframework.data.redis.connection.RedisConnectionFactory; | ||
//import org.springframework.data.redis.core.RedisTemplate; | ||
//import org.springframework.data.redis.repository.configuration.EnableRedisRepositories; | ||
// | ||
//@Configuration | ||
//@EnableRedisRepositories(excludeFilters = @ComponentScan.Filter( | ||
// type = FilterType.ASSIGNABLE_TYPE, | ||
// classes = com.foodymoody.be.feed_collection_comment.infra.persistence.jpa.FeedCollectionCommentJpaRepository.class) | ||
//) | ||
//public class RedisConfig { | ||
// | ||
// public RedisTemplate<?, ?> redisTemplate(RedisConnectionFactory connectionFactory) { | ||
// RedisTemplate<?, ?> template = new RedisTemplate<>(); | ||
// template.setConnectionFactory(connectionFactory); | ||
// | ||
// return template; | ||
// } | ||
// | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters