본문 바로가기
카테고리 없음

Springboot JUnit5 테스트 No qualifying bean of type 'com.querydsl.jpa.impl.JPAQueryFactory' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

JpaQueryFactory가 없어서 그렇다. 위 처럼 어노테이션 설정 후 테스트 클래스에서 어노테이션을 불러서 설정해주면 된다.