-
[intelliJ] Error:: java.lang.IllegalArgumentException:With Computer/Spring Starter Project 2020. 2. 8. 02:02
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postsService' defined in file [C:\Users\00\IdeaProjects\freelec-springboot2-webservice\build\classes\java\main\com\zozo\book\springboot\service\PostsService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postsRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.util.List com.zozo.book.springboot.domain.posts.PostsRepository.findAllDesc()!
@Query("SELECT p FROM Posts p ORDER BY p.id DESC ")
대문자를 소문자로 써놔서 오류남...
반응형'With Computer > Spring Starter Project' 카테고리의 다른 글
[intelliJ] 스프링부트에서 JPA로 데이터베이스를 다뤄보자 (0) 2020.02.07 [intelliJ] Error: HttpMessageNotReadableException (0) 2020.02.07 [intelliJ] TDD에서 실행쿼리 형태 확인 (0) 2020.02.07 [intelliJ] Execution failed for task ':compileJava'. (0) 2020.01.31 [intelliJ] 수동으로 코드 검증 (0) 2020.01.31