Spring Boot+JPA+QueryDSL=OrderSpecifier not found

前端 未结 2 986
情话喂你
情话喂你 2021-01-17 14:10

I have this pom.xml:


    org.springframework.boot
    spring-boot-starter-parent

        
相关标签:
2条回答
  • 2021-01-17 14:42

    My spring boot version is 2.0.5.RELEASE I resolved this problem by adding this dependency

    <!-- https://mvnrepository.com/artifact/com.mysema.querydsl/querydsl-jpa -->
    <dependency>
        <groupId>com.mysema.querydsl</groupId>
        <artifactId>querydsl-jpa</artifactId>
        <version>2.0.7</version>
    </dependency>
    
    0 讨论(0)
  • 2021-01-17 14:49

    Add following dependency in the project

                <dependency>
                    <groupId>com.querydsl</groupId>
                    <artifactId>querydsl-jpa</artifactId>
                    <version>4.0.3</version>
                </dependency>
    

    Version number according to the your JPA version.

    0 讨论(0)
提交回复
热议问题