mybatis-plus的entity中使用非表中字段

2022-08-29 11:06:53

1.使用之前一直使用的@Transient不能生效,需要使用下面的方式

    1. 使用 transient 修饰

      private transient String noColumn;
    2. 使用 static 修饰

      private static String noColumn;
    3. 使用 TableField 注解

      @TableField(exist=false)private String noColumn;
  • 作者:段漂亮
  • 原文链接:https://blog.csdn.net/weixin_39989962/article/details/110110970
    更新时间:2022-08-29 11:06:53