Springboot + Mybatis-Plus 实现公共字段填充

目的:当数据新增时 create_by 和 update_by 能够根据登录用户本身填充上数据mybatis 实现:利用 Mybatis-Plus的 MetaObjectHandler 类app 具体实现:ide 对应的实体类this @Data public class Msg extends BaseEntity{ @TableId private Integer id;
相关文章
相关标签/搜索