method has to be one of the return types spring boot jpa code example
Example 1: findbyname in jpa
List<User> findByAgeIn(Collection<Integer> ages);
Example 2: findbyname in jpa
List<User> findByBirthDateAfter(ZonedDateTime birthDate);List<User> findByBirthDateBefore(ZonedDateTime birthDate);