1、将匹配对象封装成Example对象
Example<ProductCategory> example =Example.of(productCategory);
原用法:
<S extends T> Iterable<S> findAll(Example<S> example); //根据“实例”查找一批对象
现用法:
<S extends T> Iterable<S> findAll(Example.of(productCategory)); //根据“实例”查找一批对象