강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

by09115님의 프로필 이미지
by09115

작성한 질문수

예제로 배우는 스프링 입문 (개정판)

프로젝트 과제 풀이

에러가 뜨는데 어떻게 해야할지 도저히 모르겠어요

작성

·

1.6K

0

도와주세요..

 

ERROR 37310 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ownerController' defined in file [/Users/soyeonkim0227/Documents/git/spring-petclinic/target/classes/org/springframework/samples/petclinic/owner/OwnerController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'ownerRepository' defined in org.springframework.samples.petclinic.owner.OwnerRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract org.springframework.data.domain.Page org.springframework.samples.petclinic.owner.OwnerRepository.findByFirstName(java.lang.String,org.springframework.data.domain.Pageable); Reason: Using named parameters for method public abstract org.springframework.data.domain.Page org.springframework.samples.petclinic.owner.OwnerRepository.findByFirstName(java.lang.String,org.springframework.data.domain.Pageable) but parameter 'Optional[fistName]' not found in annotated query 'SELECT DISTINCT owner FROM Owner owner left join owner.pets WHERE owner.firstName LIKE :firstName% '

답변 1

0

fistName을 firstName으로 바꿔보세용

by09115님의 프로필 이미지
by09115
질문자

감사합니다! ㅠㅠ

by09115님의 프로필 이미지
by09115

작성한 질문수

질문하기