• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

NoSuchBeanDefinitionException 오류

23.01.29 15:57 작성 조회수 631

1

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'hello.core.order.OrderServiceImpl' available

오류가 나온다면 AutoAppConfig에서
@ComponentScan(

basePackages = "hello.core.member", <- 이 부분을 지우면 된다!!

// memeber를 포함한 하위 패키지를 기준으로 찾기 때문에

// order에 대한 것 NoSuchDefiniton이 나오게된다.

excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = Configuration.class) )

 

답변 4

·

답변을 작성해보세요.

0

안시몬님의 프로필

안시몬

2023.07.10

아 패키지가 메모리까지만 잡혀잇었다는거네요.. 감사합니다

0

임병기님의 프로필

임병기

2023.04.30

감사합니다

0

seonyul93님의 프로필

seonyul93

2023.02.12

고맙습니다

0

김주희님의 프로필

김주희

2023.02.02

저도 같은 오류였는데 찾아서 다행이에요.

감사합니다.