摘要: 由于Mybatis plus默认的更新策略是NOT_NULL:非 NULL;即通过接口更新数据时数据为NULL值时将不更新进数据库。 所以Mybatis plus通过updateById(XX)更新数据,当用户有更新字段为空字符串 或者 null 的需求时,需要对 FieldStrategy 策略进 阅读全文
posted @ 2020-03-16 22:52 知识追求者 阅读(2314) 评论(0) 推荐(0) 编辑
摘要: 在pom.xml中引入mybatis plus的jar包 在resources/application.yml配置文件中配置数据库 创建BaseEntity实体类 创建User实体类 创建UserMapper 创建UserService 创建UserServiceImpl 创建UserControl 阅读全文
posted @ 2020-03-16 22:50 知识追求者 阅读(3685) 评论(0) 推荐(1) 编辑