강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Spring Core Principles - Basic Edition

Getting Started with Component Scan and Automatic Dependency Injection

AutoAppConfigTest 오류

Written on

·

725

1

AutoAppConfiugTest를 실행하면 NoSuchBeanDefinitionException이 발생합니다.

MemberRepository 타입의 객체가 스프링 빈으로 등록이 안 되었다는 거 같은데.. MemoryMemberRepository 포함해서 빈으로 등록해야 될 클래스에 @Component 다 붙였고 생성자에도 @Autowirde 다 붙였는데 왜 등록이 안 되는 걸까요...?

springoop

Answer 1

1

안녕하세요. dain0826님, 공식 서포터즈 OMG입니다.

AutoAppConfig 클래스의 패키지 위치를 강의와 동일하게 되어 있는지 확인해주세요

 

감사합니다.

No author

This post's author information has been deleted.

Ask a question