🤍 전 강의 25% 할인 중 🤍

2024년 상반기를 돌아보고 하반기에도 함께 성장해요!
인프런이 준비한 25% 할인 받으러 가기 >>

  • 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

31강

24.05.23 03:03 작성 조회수 62

0

Description:

Parameter 0 of constructor in com.group.libraryapp.service.user.UserService required a bean of type 'com.group.libraryapp.repository.user.UserRepository' that could not be found.

Action:

Consider defining a bean of type 'com.group.libraryapp.repository.user.UserRepository' in your configuration.

Disconnected from the target VM, address: '127.0.0.1:53718', transport: 'socket'

Process finished with exit code 1
이게 계속 뜨면서 실행이 안됩니다 제발 도와주세요 ㅜㅜㅜㅠㅠ gpt에다가 물어봤는데도 안되어서 말씀드립니다

답변 1

답변을 작성해보세요.

0

안녕하세요, 건우님! 질문 주셔서 감사합니다. 🙂

핵심은 Parameter 0 of constructor in com.group.libraryapp.service.user.UserService required a bean of type 'com.group.libraryapp.repository.user.UserRepository' that could not be found. 로 보이는데요!

이 에러를 해석해보면, UserService 를 스프링이 관리하는 bean으로 만드려 하는데, UserService 클래스에 있는 첫 번째 생성자인 UserRepository 를 찾을 수 없다는 뜻입니다!

UserRepository 를 정상적으로 설정해주시면 해결될 것으로 보입니다.

꼭 해결되셨으면 좋겠습니다. 감사합니다! 🙏

채널톡 아이콘