|
@@ -23,6 +23,16 @@
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
|
|
|
+ <!-- QueryDSL框架依赖 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.querydsl</groupId>
|
|
|
|
+ <artifactId>querydsl-apt</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.querydsl</groupId>
|
|
|
|
+ <artifactId>querydsl-jpa</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<artifactId>h2</artifactId>
|
|
@@ -63,6 +73,11 @@
|
|
<groupId>cc.iotkit</groupId>
|
|
<groupId>cc.iotkit</groupId>
|
|
<artifactId>iot-data-service</artifactId>
|
|
<artifactId>iot-data-service</artifactId>
|
|
</dependency>
|
|
</dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.data</groupId>
|
|
|
|
+ <artifactId>spring-data-commons</artifactId>
|
|
|
|
+ <version>2.7.11</version>
|
|
|
|
+ </dependency>
|
|
|
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
|
|
|
@@ -90,6 +105,26 @@
|
|
</annotationProcessorPaths>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</configuration>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
+
|
|
|
|
+ <plugin>
|
|
|
|
+ <!--因为QueryDsl是类型安全的,所以还需要加上Maven APT plugin,使用 APT 自动生成Q类:-->
|
|
|
|
+ <groupId>com.mysema.maven</groupId>
|
|
|
|
+ <artifactId>apt-maven-plugin</artifactId>
|
|
|
|
+ <version>1.1.3</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <phase>generate-sources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>process</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <outputDirectory>target/generated-sources/java</outputDirectory>
|
|
|
|
+ <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
</plugins>
|
|
</plugins>
|
|
</build>
|
|
</build>
|
|
|
|
|