Springboot + Mybatis-Plus 實現公共字段填充

目的:當數據新增時 create_by 和 update_by 能夠根據登錄用戶本身填充上數據mybatis 實現:利用 Mybatis-Plus的 MetaObjectHandler 類app 具體實現:ide 對應的實體類this @Data public class Msg extends BaseEntity{ @TableId private Integer id;
相關文章
相關標籤/搜索