강의

멘토링

커뮤니티

Inflearn Community Q&A

sylin7392's profile image
sylin7392

asked

Spring Core Principles - Basic Edition

Getting Started with Component Scan and Automatic Dependency Injection

13분 에러나요......

Written on

·

419

0

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl' defined in file [C:\Users\songsyl\Desktop\study\core\out\production\classes\Hello\core\order\OrderServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1: No qualifying bean of type 'Hello.core.discount.DiscountPolicy' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

원인이 뭘까요?

spring객체지향

Answer 3

0

저도 같은 에러가 발생했는데 해당 강의에서 수정한 내용은 정확하게 수정한 것으로 보이는데 이유를 알수있을까요?

0

안녕하세요. 송예린님, 공식 서포터즈 y2gcoder입니다.

스스로 잘 해결하셨습니다 :) 

강의 수강 중 강의 관련 궁금한 사항은 언제든 질문 남겨주세요^^

0

sylin7392님의 프로필 이미지
sylin7392
Questioner

해결했습니다 Ratediscount에서 @component가 아닌 다른 값을 입력했네요 다들 자동완성 주의하세요

sylin7392's profile image
sylin7392

asked

Ask a question