inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

프로젝트 과제 풀이

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

1642

by09115

작성한 질문수 3

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% '

spring java

답변 1

0

OMG

fistName을 firstName으로 바꿔보세용

0

by09115

감사합니다! ㅠㅠ

jar 안되는 분들 참고하세요

0

362

1

mvnw 오류

0

468

1

./mvnw package 오류

0

423

2

java -jar target/*.jar 명령어 오류..

0

446

2

./mvnw package 오류

0

279

0

./mvnw package 오류

0

211

1

실행 상태에서 변경내용이 바로 반영되나요 ??

0

226

1

도와주세용 ㅜㅜ

0

206

1

./mvnw package 오류

0

318

1

클론 받은 내용과 수업내용이

0

401

1

./mvnw package 오류

0

1145

2

순환참조와 bean 주입에 대한 질문입니다!

0

407

1

jdk 버전이 자꾸 낮다면서 오류가 발생합니다.

0

891

1

age가 화면에 표시가 안됩니다.

0

395

0

PetClinicApplication() 함수에서 run 을 하고 싶습니다...

0

520

0

h2와 hsqldb가 어떤차이가 있는건지 궁금합니다

0

1246

0

예제가 이전과 다르네요

0

370

0

메이븐으로 설정했는데 그래들이 같이 보일수 있나요?

0

575

1

LogAspect

0

326

1

구현체가 2개 이상일때 생성자 주입

0

366

1

의존성 주입 방법들 장단점

0

493

1

인스턴스의 생명주기와 제어권

0

311

1

IoC 컨테이너 안에 있는 객체들끼리만 의존성 주입

0

373

1

ExampleRepository exampleRepository = new ExampleRepository()

0

247

1