1.基础类实现公共的方法,其他具体类集成 https://blog.csdn.net/Java_Mike/article/details/76220673
https://www.tianmaying.com/tutorial/spring-jpa-custom-single
2.各具体类分别有各自的方法,想实现怎么实现?同时要能那种规范的也支持,也可以。
参考:https://blog.csdn.net/blueheart20/article/details/72821384 (文中有句话说错了(这里的Custom后缀是约定的,不能随意修改),正确表达应该是实现类默认是impl,不过也可以修改,通过我们可以通过@EnableJpaRepositories(repositoryImplementationPostfix="Custom")来更改具体实现的后缀)
https://www.tianmaying.com/tutorial/spring-jpa-custom-single
其他参考:
https://yq.aliyun.com/articles/465404
https://blog.csdn.net/saafdgvsdg/article/details/80603581
https://blog.csdn.net/zhongzh86/article/details/54313726