Fix kingbase8r6 error

This commit is contained in:
SwallowGG
2023-11-12 12:26:48 +08:00
parent 1a063321be
commit 654462ad1c
2 changed files with 17 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.google.common.collect.Lists;
@ -55,6 +56,7 @@ public class ResultSetUtils {
ObjectMapper mapper = new ObjectMapper();
mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
while (rs.next()) {
Map<String, Object> map = new HashMap<>();
for (int i = 1; i <= col; i++) {