可以自定义jpa查询的接口,要和Repository体系的接口一起使用 没试验过,等有空了再尝试下,先贴原文链接。 https://www.cnblogs.com/banywl/articles/14016123.html