QueryDSL依赖

作用:和JPA配合使用,简化条件查询

这是使用QueryDSL必须要的依赖

<dependency>

<groupId>com.mysema.querydslgroupId>

<artifactId>querydsl-aptartifactId>

<scope>providedscope>

dependency>

 

<dependency>

<groupId>com.mysema.querydslgroupId>

<artifactId>querydsl-coreartifactId>

dependency>

 

<dependency>

<groupId>com.mysema.querydslgroupId>

<artifactId>querydsl-jpaartifactId>

dependency>

 

 

<dependency>

<groupId>javax.injectgroupId>

<artifactId>javax.injectartifactId>

dependency>

 

<build>

<plugins>

<plugin>

<groupId>com.mysema.mavengroupId>

<artifactId>apt-maven-pluginartifactId>

<version>1.1.3version>

<executions>

<execution>

<phase>generate-sourcesphase>

<goals>

<goal>processgoal>

goals>

<configuration>

<outputDirectory>target/generated-sources/javaoutputDirectory>

<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessorprocessor>

configuration>

execution>

executions>

plugin>

plugins>

build>

 

你可能感兴趣的:(JAVA)