当我要选择除密码之外的所有其他字段时,因为我不想向用户显示密码。但是它会抛出如下异常: java.lang.IllegalArgumentException:Cassandra表中的列不存在:密码 ,而且我正在为此使用CassandraOperations类 这是我用于查询的代码-
public UserModel getUserByID(UUID id) {
Select.Where select = QueryBuilder.select("id","address", "contact",
"email","first_name","last_name","username")
.from("users")
.where(QueryBuilder.eq("id", id));
UserModel results = cassandraTemplate
.selectOne(select, UserModel.class);
System.out.println(results + "im in get user");
return results;
}