인프런 커뮤니티 질문&답변
에러가 뜨는데 어떻게 해야할지 도저히 모르겠어요
작성
·
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% '






감사합니다! ㅠㅠ