Springboot integrates MyBatis-plus: automatically fills in the time field

Springboot integrates MyBatis-plus: automatically fills in the time field

1. View the complete directory structure

Insert picture description here

Two, mysql database adds time fields create_time, update_time

alter table stu_info add column create_time datetime not null default '2020-01-01 00:00:00' comment "生成时间"

Guess you like

Origin blog.csdn.net/zhengzaifeidelushang/article/details/115256426