MoonThousand / BookLeum

0 stars 0 forks source link

error) spring data jpa 잘못 작성한 query 오류 #8

Open Euihyunee opened 1 month ago

Euihyunee commented 1 month ago

에러

2024-10-08T21:33:06.092+09:00 WARN 19520 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController' defined in file [C:\Users\lobil\git_project\bookleum\Back\Dalcheon\Dalcheon\out\production\classes\Bukgu\Dalcheon\controller\UserController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'userService' defined in file [C:\Users\lobil\git_project\bookleum\Back\Dalcheon\Dalcheon\out\production\classes\Bukgu\Dalcheon\service\UserService.class]: Unsatisfied dependency expressed through constructor parameter 4: Error creating bean with name 'orderRepository' defined in Bukgu.Dalcheon.repository.OrderRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.util.Optional Bukgu.Dalcheon.repository.OrderRepository.findAllByUserId(java.lang.String); Reason: Failed to create query for method public abstract java.util.Optional Bukgu.Dalcheon.repository.OrderRepository.findAllByUserId(java.lang.String); No property 'userId' found for type 'OrderDAO'

Euihyunee commented 1 month ago

JpaRepository에서 작성한 메서드명이 올바르지 않아 발생하는 오류