flowable-engine
flowable-engine copied to clipboard
使用mysql数据库排除flowable的mybatis使用java8和mybatis-plus情况下数据库字段错误
Describe the bug 排除flowable的mybatis使用java8和mybatis-plus使用mysql数据库
Expected behavior 第一次启动初始化数据库正常,二次启动报错,错误内容为java.lang.ClassCastException: java.time.LocalDateTime cannot be cast to java.lang.String
Code liquibase.changelog.StandardChangeLogHistoryService#getRanChangeSets Date dateExecuted = null; if (tmpDateExecuted instanceof Date) { dateExecuted = (Date) tmpDateExecuted; } else { DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { dateExecuted = df.parse((String) tmpDateExecuted); } catch (ParseException e) { // Ignore ParseException and assume dateExecuted == null instead of aborting. } }
建议 建议表FLW_开头的表中类型为datatime的字段更换为timestamp