ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

 

๐Ÿ’ก ํ•ด๊ฒฐ์ฑ…

- JPAConfig ํŒŒ์ผ ์ƒ์„ฑํ•˜๊ธฐ

@Configuration
@EnableJpaAuditing
@EnableJpaRepositories(basePackages = "cupitoo.wtwt.config")
public class JPAConfig {
    @PersistenceContext
    private EntityManager entityManager;

    @Bean
    public JPAQueryFactory queryFactory() {
        return new JPAQueryFactory(entityManager);
    }
}

 

https://abbo.tistory.com/321

 

[Java] ์—๋Ÿฌ ์ˆ˜์ • ์ผ์ง€ : required a bean of type 'com.querydsl.jpa.impl.JPAQueryFactory' that could not be found.

JPAQueryFactory ๋ฅผ import ํ•˜๋ฉด์„œ ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜์ž…๋‹ˆ๋‹ค. ์ด๋Š” ์ฃผ๋กœ IntelliJ ์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜์ธ๋ฐ @SpringBootApplication ์— scanBasePackages ์„ค์ •์„ ํ•ด์ฃผ๋ฉด ํ•ด์ค€๋‹ค๊ณ  ๋‚˜์™€์žˆ์Šต๋‹ˆ๋‹ค. ์šฐ์„  ์˜ˆ์‹œ๋ฅผ ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. @Repo

abbo.tistory.com

 

๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2025/05   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
๊ธ€ ๋ณด๊ด€ํ•จ