问题描述 环境:springboot2.7.3+mysql8 在entity类中加入了@DynamicUpdate注解,但是在向数据库中insert数据时,没有手动insert创建时间,结果报错Column ‘create_time’ cannot be null 修改方法 将mysql的版本降低为5,但是这个不推荐同时在entity类中加入@DynamicUpdate和@DynamicInsert