![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 56
心潮的滴滴
这个作者很懒,什么都没留下…
展开
-
MyBatis-Plus注解总结
1. @TableName注解用来设置实体类所对应的表名2. @TableId注解指定属性所对应的字段作为主键两个属性type属性:用于指定主键生成的字段value属性:用于指定主键生成策略3. @TableField注解指定属性所对应的普通字段名4. @TableLogic指定逻辑删除字段案例:@Data@TableName("t_user") // 设置实体类所对应的表名public class User { // MyBatis-Plu原创 2022-03-20 17:28:13 · 1020 阅读 · 0 评论 -
org.xml.sax.SAXParseException; lineNumber: 208; columnNumber: 15; 元素类型为 “include“ 的内容必须匹配 “((propert
今天,在实习过程中,遇到了一个BUG,找了好久好久,它显示报错如下:2021-12-28 13:31:13.442 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminCommonContro原创 2021-12-28 13:46:38 · 1139 阅读 · 0 评论 -
MyBatis一个标签中写多条sql语句,可以实现吗?
当然可以,今天,在实习过程中,遇到一个数据迁移的问题,由于sql代码量大,我想试着在一个mybatis标签中写多条sql语句的方式实现,但是出现了错误,不过,我们可以通过在访问mysql的url中添加上这个参数即可实现在一个mybatis标签中写多条sql语句。...原创 2021-10-21 15:46:56 · 2908 阅读 · 0 评论