学无先后,达者为师

网站首页 编程语言 正文

Example动态(多条件)查询

作者:Lanzhu1_2 更新时间: 2024-02-26 编程语言
    Example<Student> example = Example.of(Student.builder().depositName(name).build());
    List<Student> Students= this.studentRepository.findAll(example);

Example可以用来创建动态的查询条件,将想要查询的条件组合封装,然后就可以对封装的条件进行整体查询。

原文链接:https://blog.csdn.net/Lanzhu1_2/article/details/132058961

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新