cron获取上一个执行时间


public static LocalDateTime getLastExecutionTime(LocalDateTime time, String cron) { CronParser parser = new CronParser(CronDefinitionBuilder.

Gson实现LocalDateTime序列化


private Gson gson = new GsonBuilder() .registerTypeAdapter(LocalDateTime.class, new JsonSerializer<LocalDateTime>() { @O

ObjectMapper(Jackson)解析Json对象


ObjectMapper mapper = new ObjectMapper(); // 忽略大小写 mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true); // 下划线 与 驼峰转化 mapper.

Guava使用


版本差异 1x. 2x. Objects.toStringHelper MoreObjects.toStringHelper HashFunction.hashString(String) HashFunction.hashString(String,Charset) Hasher.putStrin