Administrator il y a 2 ans
Parent
commit
9143a6b4e7

+ 1 - 1
src/main/java/com/xiesx/fastboot/core/jpa/annotation/EnableJpaPlusRepositories.java

@@ -20,6 +20,6 @@ import com.xiesx.fastboot.core.jpa.factory.JpaPlusRepositoryFactoryBean;
 @EnableJpaRepositories(repositoryFactoryBeanClass = JpaPlusRepositoryFactoryBean.class)
 @Target(ElementType.TYPE)
 @Retention(RetentionPolicy.RUNTIME)
-@Import({JpaPlusCfg.class})
+@Import(JpaPlusCfg.class)
 public @interface EnableJpaPlusRepositories {
 }

+ 2 - 1
src/main/java/com/xiesx/fastboot/core/jpa/cfg/JpaPlusCfg.java

@@ -15,10 +15,11 @@ import com.querydsl.jpa.impl.JPAQueryFactory;
  * @date 2020-7-21 22:36:02
  */
 @Configuration
-public class JpaPlusCfg implements WebMvcConfigurer {
+public class JpaPlusCfg{
 
     @Bean
     public JPAQueryFactory jpaQuery(EntityManager entityManager) {
         return new JPAQueryFactory(entityManager);
     }
+
 }