개발 기록기록📝

  • 홈
  • 태그
  • 방명록

@Qualifier 1

[Spring] 의존관계 자동 주입(2/2) - @Autowired, @Qualifier, @Primary

의존성 주입을 위해 빈을 주입할 때 조회된 빈이 2개 이상일 경우가 있습니다. 다음과 같은 경우입니다. @Autowired는 빈의 타입으로 빈을 조회하는데, @Component public class FixDiscountPolicy implements Discountpolicy{} @Component public class RateDiscountPolicy implements DiscountPolicy {} 위와같이 DiscountPolicy 인터페이스를 FixDiscountPolicy와 RateDiscountPolicy가 구현하고 있을 경우 @Autowired private DiscountPolicy discountPolicy DiscountPolicy 타입으로 빈을 주입받으려고 하면 NoUniqueB..

Spring/스프링 핵심원리 기본편 2021.10.10
이전
1
다음
더보기
프로필사진

개발 기록기록📝

  • 분류 전체보기
    • Dart
    • Flutter
      • Flutter 에러 해결
      • Flutter 개발 기록
      • Flutter 정리
    • Javascript
      • 모던 자바스크립트 Deep Dive
      • 문법 정리
    • Front-End
      • 성능개선
      • Next.js
      • React
      • 프론트엔드 개발환경
    • Kafka
    • JPA
    • Algorithm 뽀개기
      • 프로그래머스
      • 알고리즘을 위한 문법
      • 알고리즘 정리
    • Spring
      • 스프링 핵심원리 기본편
    • Java
    • 개발삽질기
    • python
    • AWS
    • 성능 테스팅
    • Middleware
    • Linux
    • SQL
    • Network
    • Architecture
    • OS
    • Etc
    • 회고
    • 프로젝트
      • TMS

Tag

플러터 아키텍처, flutter plugin 개발, ios/pods/target support files/pods-runner/pods-runner-resources.sh: permission denied command phasescriptexecution failed with a nonzero exit code, failed to verify code signature of, 시간복잡도, JPA, windows kafka, 플러터 구조, flutter architecture, 플러터 클린아키텍처, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'googledatatransport' from project 'pods'), the ios deployment target 'iphoneos_deployment_target' is set to 9.0, error shutdown broker because all log dirs in, 파이썬, log4j:error failed to rename, framework 'pods_runner' not found, 프로그래머스, please ensure that the certificates used to sign your app have not expired., windows kafka 에러, the identity used to sign the executable is no longer valid,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바