@Component
public class MybatisPlusConfig implements MetaObjectHandler {


        @Override
        public void insertFill(MetaObject metaObject) {
            log.info("start insert fill createTime....");
            this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now()); // 起始版本 3.3.0(推荐使用)
        }

        @Override
        public void updateFill(MetaObject metaObject) {
            log.info("start update fill modifiedTime....");
            this.strictUpdateFill(metaObject, "modifiedTime", LocalDateTime.class, LocalDateTime.now()); // 起始版本 3.3.0(推荐使用)
        }
}