QueryDSL for Mongo with Spring and gradle
问题 How do I generate the predicate classes (Q* classes) with gradle? I want to use Q* classes for Mongo using Spring data. Spring documentation shows maven and ant versions but no gradle. Is there any plugin out there that I could use? 回答1: You can use the same approach is presented here Generating JPA2 Metamodel from a Gradle build script Just replace the Querydsl JPA APT processor with the Spring Mongodb processor. 回答2: There is an example in my project: spring-data-demo You will need to