1
0

feat(jpa): 增加默认 JpaQueryFactory 的注入

This commit is contained in:
2026-01-22 22:36:38 +08:00
parent e7fa23a365
commit 7b555492ee

View File

@@ -0,0 +1,14 @@
package com.lanyuanxiaoyao.service.template.database.jpa.configuration;
import com.querydsl.jpa.impl.JPAQueryFactory;
import jakarta.persistence.EntityManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class QueryDSLConfiguration {
@Bean
public JPAQueryFactory jpaQueryFactory(EntityManager manager) {
return new JPAQueryFactory(manager);
}
}