작성
·
289
0
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springConfig' defined in file [C:\Users\WIN10\Desktop\Spring 강의 예제\hello-spring\hello-spring\out\production\classes\hello\hellospring\SpringConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springDataJpaMemberRepository' defined in hello.hellospring.repository.SpringDataJpaMemberRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.util.Optional hello.hellospring.repository.SpringDataJpaMemberRepository.findbyName(java.lang.String)! Reason: Failed to create query for method public abstract java.util.Optional hello.hellospring.repository.SpringDataJpaMemberRepository.findbyName(java.lang.String)! No property findbyName found for type Member!; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.Optional hello.hellospring.repository.SpringDataJpaMemberRepository.findbyName(java.lang.String)! No property findbyName found for type Member!
스프링 데이터 JPA 이전 과정까지 정상 동작했는데, 새 인터페이스 작성후 findbyName을 찾아오지 못하는 것 같습니다. 원인이 뭘까요?
세상에 당연히 대문자로 해놓은줄 알았습니다..ㅜㅜㅜ 감사합니다