class ProductService {

    @Transactional
    public Page<Product> getProductList(int startPage) {
        Pageable pageable = PageRequest.of(startPage, pageSize);

        Page<Product> products = productRepository.findProducts(pageable);
        return products;
    }

    public  ProductService(ProductRepository productRepository);

}