[spring] expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} 오류해결

뿌이·2022년 1월 18일
1

오류해결

목록 보기
6/53

이거 오류나는 이유는
일단 autowire이랑 연관이있다
나같은 경우에는
@AllArgsConstructor

@Autowired
랑 겹쳐서
그런경우였다..
그럼 bean을 두번 만들어주기때문에...

@AllArgsConstructor
@Setter(onMethod_=@Autowired)
@Autowired

이 세가지는 절대절대절대 같이쓰면 안된다.
기억하자

profile
기록이 쌓이면 지식이 된다.

0개의 댓글