mybatis-plus的entity中使用非表中字段
1.使用之前一直使用的@Transient不能生效,需要使用下面的方式
使用 transient 修饰
private transient String noColumn;
使用 static 修饰
private static String noColumn;
使用 TableField 注解
@TableField(exist=false)
private String noColumn;
...
原创
2020-11-25 09:42:18 ·
2679 阅读 ·
0 评论