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)"