@QuerydslPredicate throwing exception

前端 未结 4 763
情歌与酒
情歌与酒 2020-12-21 05:31

I\'m trying to understand how to use @QuerydslPredicate but my test API fails when it is called:

Servlet.service() for servlet [dispatcherServle         


        
4条回答
  •  無奈伤痛
    2020-12-21 06:00

    I think your problem lies in your pom.xml. Be sure you are using compatible version of query-dsl. For instance if you use spring-data-jpa 2.0.8, you should use querydsl-* 4.1.4+

    
        org.springframework.data
        spring-data-jpa
        2.0.8.RELEASE
    
    
    
        com.querydsl
        querydsl-*
        4.1.4
    
    

    you can check in maven repository which version you need

    Edit 1 try to add the querydsl-core to your maven:

     
            com.querydsl
            querydsl-core
            4.1.4
     
    

提交回复
热议问题