Springboot JPA 组合查询 SpringBoot JPA封装好了组合查询的接口,不需要写SQL查询条件的语句 在dao层的Repository 继承 JpaSpecificationExecutor接口 在Service层调用findAll()方法 在findAll中传入两个参数 OK了