Skip to content

Commit 129786c

Browse files
committed
[Chore]: QueryDSL 사용을 위한 QueryFactory 빈 추가
1 parent fa52a78 commit 129786c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.back.global.config;
2+
3+
import com.querydsl.jpa.impl.JPAQueryFactory;
4+
import jakarta.persistence.EntityManager;
5+
import org.springframework.context.annotation.Bean;
6+
import org.springframework.context.annotation.Configuration;
7+
8+
@Configuration
9+
public class JpaConfig {
10+
@Bean
11+
public JPAQueryFactory jpaQueryFactory(EntityManager em) {
12+
return new JPAQueryFactory(em);
13+
}
14+
}

0 commit comments

Comments
 (0)