Spring Boot MyBatis-Plus 设置不读取指定字段
Spring Boot MyBatis-Plus About 327 wordsselect = false
在指定字段上添加@TableField(select = false)即可。
示例代码
@Setter
@Getter
@ToString
@TableName(value = "test")
public class TestEntity {
@TableField(value = "raw_json",
select = false,
typeHandler = JsonNodeTypeHandler.class,
jdbcType = JdbcType.OTHER)
private JsonNode rawJson;
}
Views: 28 · Posted: 2026-01-27
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...