Метод withStringMatcherEnding () не определен для типа ExampleMatcher - Spring Data Redis - PullRequest
0 голосов
/ 21 ноября 2018

Я подписан на Spring Data Redis https://docs.spring.io/spring-data/data-redis/docs/2.1.2.RELEASE/reference/html/#query-by-example.matchers документ, который не совсем ясен.Я разрабатываю пример, взяв ссылку сверху по ссылке.

Метод withStringMatcherEnding () не определен для типа ExampleMatcher

enter image description here

EmployeeRepository.java

public interface EmployeeRepository extends CrudRepository<Employee, String>, QueryByExampleExecutor<Employee>{}

Я использую 2.0.6.RELEASE Spring Boot версию.

Employee.java

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("employees")
public class Employee {
    @Id @Indexed
    private String id;
    private String firstName;
    private String lastName;
    private List<Address> addresses;

    private List<Department> departments;
}
...