강의

멘토링

커뮤니티

Inflearn Community Q&A

hwangtoever1041's profile image
hwangtoever1041

asked

Microservice Application (MSA) Development with Spring Cloud

Users Microservice - Return Values and Response Codes Overview

[Solved] 서비스 실행 시 Bean 관련 오류 도움 요청드립니다.

Written on

·

377

0

Run을 하면 아래와 같은 오류가 발생합니다. 혹시 점검해봐야햘 부분을 아래 로그로 확인이 되실지요ㅜㅜ
 
Description: Field userRepository in com.example.userservice.service.UserServiceImpl required a bean of type 'com.example.userservice.jpa.UserRepository' that could not be found.
 
Action: Consider defining a bean of type 'com.example.userservice.jpa.UserRepository' in your configuration.
 
 
 
 
 
 
 
 
 
 
 
 
 
architecturespring-cloudJPAspring-bootmsaKafka

Answer 1

1

CoonZaCCang님의 프로필 이미지
CoonZaCCang
Questioner

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<scope>test</scope>
</dependency>

pom.xml 에 jpa dependency 추가 시  scope test를 지워 해결하였습니다. 강의를 다시 보면서 확인한부분입니다. 

hwangtoever1041's profile image
hwangtoever1041

asked

Ask a question