package com.ksfe.auditlog.repository;
import org.springframework.data.cassandra.repository.CassandraRepository;
import com.ksfe.auditlog.model.Customer;
public interface CustomerRepository extends CassandraRepository<Customer> {
}
其中错误显示为cassandrarepository类型的参数数目不正确;它不能用参数参数化
1条答案
按热度按时间gcmastyq1#
改变这个
public interface CustomerRepository extends CassandraRepository<Customer>
到public interface CustomerRepository extends CassandraRepository<Customer,Integer>
同时添加id参数。注意:integer/long取决于id类型。