0
要在cassandra数据库中输入日期,我想插入一个值。 我尝试过类型java.util.Date和com.datastax.driver.core.LocalDate。 这两种方式都不适合我。 对于LOCALDATE的错误:来自Java Spring Project的Cassandra日期插入
"JSON parse error: Can not construct instance of com.datastax.driver.core.LocalDate: no String-argument constructor/factory method to deserialize from String value (''); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.datastax.driver.core.LocalDate: no String-argument constructor/factory method to deserialize from String value ('')\n at [Source: [email protected]; line: 10, column: 25] (through reference chain: com.comarch.programs.dtos.ProgramDto[\"prgStartDate\"])",
日期错误:
"Expected 4 byte long for date (8); nested exception is com.datastax.driver.core.exceptions.InvalidQueryException: Expected 4 byte long for date (8)"