@Service

프로젝트

목록 보기
22/39

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderController' defined in file [/Users/seli/Desktop/myomiFinal/MyoMiBackend/target/classes/com/myomi/order/control/OrderController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.myomi.order.service.OrderService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

  • 실행 application을 패키지 제일 위에두면 모든 controller, service, repository를 component scan하는 것 같아서 @Service 빼도 되지않나? 하고실험하다가 생긴 에러. service에 잘 붙여주자~
profile
백엔드를 공부하고 있습니다.

0개의 댓글