In this post we will see how to wrtite custom method in spring data jpa using distinct keyword with example.