mybatis plus
李博客
这个作者很懒,什么都没留下…
展开
-
mybatis-plus 和 分页 pagehelp冲突 解决
解决方案:排除 pagehelp 包的mybatis和mybatis-spring依赖<!-- pagehelper --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.5&l原创 2022-05-11 10:37:52 · 850 阅读 · 0 评论 -
mybatis plus 实体类多加个属性
@TableField(exist = false) 注解加载bean属性上,表示当前属性不是数据库的字段,但在项目中必须使用。这样在新增等使用bean的时候,mybatis-plus就会忽略这个,不会报错 /** * 完成度 */ @ApiModelProperty(name = "completion", value = "完成度") @TableField(exist = false) private Integer completion;原创 2022-04-25 16:00:50 · 1034 阅读 · 0 评论