Skip to content

Commit

Permalink
refactor: @PresistenceContext를 생성자 주입으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
zinzoddari committed Jan 9, 2024
1 parent d86b554 commit 57e390a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/idiot/yesslave/global/jpa/QueryDslConfig.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package org.idiot.yesslave.global.jpa;

import com.querydsl.jpa.impl.JPAQueryFactory;
import javax.persistence.EntityManager;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Configuration
@RequiredArgsConstructor
public class QueryDslConfig {
@PersistenceContext
private EntityManager entityManager;

private final EntityManager entityManager;

@Bean
public JPAQueryFactory jpaQueryFactory() {
Expand Down

0 comments on commit 57e390a

Please sign in to comment.