작성
·
652
0
답변 2
0
안녕하세요. richthofen4852님, 공식 서포터즈 OMG입니다.
아래 링크를 보시면 아시겠지만, 올리신 에러메시지 뒤에 추가적인 에러메시지가 있을 거같아요.
through constructor parameter 0;
뒤에 추가 에러메시지를 확인하여 해결해주세요.
해결이 안될 경우 댓글남겨주세요
https://www.inflearn.com/questions/255359
감사합니다.
안녕하세요 답변 링크를 보고 뒷 부분의 추가 에러 메시지를 보았는데
Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hello.itemservice.config.SpringDataJpaConfig': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException 이렇게 출력되었습니다.
@Configuration
@RequiredArgsConstructor
public class SpringDataJpaConfig {
private final SpringDataJpaItemRepository springDataJpaItemRepository;
@Bean
public ItemService itemService() {
return new ItemServiceV1(itemRepository());
}
@Bean
public ItemRepository itemRepository() {
return new JpaItemRepositoryV2(springDataJpaItemRepository);
}
}
강의와 다른 부분이 있는지 확인해주시고, 그래도 해결이 안될 경우 코드를 살펴봐야 알 것 같습니다.
전체 프로젝트를 압축해서 구글 드라이브로 공유해서 링크를 남겨주세요.
구글 드라이브 업로드 방법은 다음을 참고해주세요.
https://bit.ly/3fX6ygx
주의: 업로드시 권한 문제 꼭 확인해주세요
공유 기본 설정은 비공개로 되어 있어 업로드 한 본인 계정만 접근이 가능합니다.
본인 계정이 아닌 링크를 통한 타 계정 접근이 가능한지 확인하는 방법은 업로드 한 구글 계정을 로그아웃하고 링크를 접속하여 "액세스 권한 요청 화면"이 출력되는지 확인을 해주세요.
감사합니다
https://drive.google.com/file/d/1be_uz0JP84kvBbOxzAzLZBB2lSG4GpD2/view?usp=sharing 링크 올려드렸습니다!
감사합니다!!