Skip to content

[FIX] bean primary 설정#169

Open
youabledev wants to merge 1 commit intodevelopfrom
fix/bean-primary
Open

[FIX] bean primary 설정#169
youabledev wants to merge 1 commit intodevelopfrom
fix/bean-primary

Conversation

@youabledev
Copy link
Contributor

📝작업 내용 && 리뷰 요구사항

  • macOS, IntelliJ 환경에서 clean build 후 아래와 같은 빈 충돌이 일어났습니다. 혹시 다른 분들 환경에서는 문제가 없는지, 아래 코드를 적용해도 될지 코드 리뷰 부탁드립니다!
 Parameter 1 of constructor in com.dekk.app.admin.security.AdminSecurityConfig required a single bean, but 2 were found:                                                                                                          
  - corsConfigurationSource: defined by method 'corsConfigurationSource' in class path resource [com/dekk/global/security/config/SecurityConfig.class]                                                                             
  - mvcHandlerMappingIntrospector: defined by method 'mvcHandlerMappingIntrospector' in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]    
Parameter 0 of constructor in com.dekk.app.auth.infrastructure.redis.RefreshTokenRepositoryImpl required a single bean, but 2 were found:                                                                                        
  - redisTemplate: defined by method 'redisTemplate' in class path resource [com/dekk/global/cache/RedisConfig.class]                                                                                                              
  - stringRedisTemplate: defined by method 'stringRedisTemplate' in class path resource [org/redisson/spring/starter/RedissonAutoConfigurationV2.class]  

@youabledev youabledev self-assigned this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant