public interface StudentRepository extends JpaRepository<Student, Integer>, QuerydslPredicateExecutor<Student> {
@Override
@PostFilter("myClass.MyMethod(filterObject, HttpServletRequest)")
Iterable<Student> findAll(Predicate predicate);
}
我想在代码中使用 @PostFilter(“ myClass.MyMethod(filterObject,HttpServletRequest)”)。还请告诉我正确启用它的方法。