• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

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

23.02.17 22:52 작성 조회수 575

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

OMG님의 프로필

OMG

2023.02.18

fistName을 firstName으로 바꿔보세용

by09115님의 프로필

by09115

질문자

2023.02.18

감사합니다! ㅠㅠ