728x90 Repository1 [Spring] Querydsl Repository 구현 Querydsl 설정은 Querydsl Gradle 설정 참고 이전 글 작성할 때 테스트했던 player table로 querydsl을 적용해보자. Player Table QuerydslConfiguration @Configuration public class QuerydslConfig { @PersistenceContext private EntityManager entityManager; @Bean public JPAQueryFactory jpaQueryFactory() { return new JPAQueryFactory(entityManager); } } JPAQueryFactory를 서비스에서 주입받아 사용하기 위해 Configuration을 설정해야 한다. Entity Class 생성 player.. 2022. 11. 19. 이전 1 다음 300x250