![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis-plus
stevezhao6
这个作者很懒,什么都没留下…
展开
-
Unsatisfied dependency expressed through field ‘baseMapper‘; nested exception is org.springframewor
在springboot启动类上加上dao或者mapper@MapperScan("com.zhao.blog.mapper")然后就正常启动原创 2021-09-20 22:10:45 · 1105 阅读 · 0 评论 -
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
今天在使用mybatis-plus的时候发现的问题# 最后发现多了一个包删除就行以下是我自己的配置<!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <原创 2021-09-19 22:13:41 · 2748 阅读 · 0 评论 -
mybatis -plus插入mysql数据,数据库时间比系统时间差8小时
发现插入的数据有8个小时的时差把数据库连接的url改为url: jdbc:mysql://localhost:3306/mybatis_plus?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai即可最后测试正常PS:以前用的是时区用的是UTC...原创 2021-07-12 15:39:52 · 814 阅读 · 0 评论 -
解决mybatis-plus日期显示为null的问题
先上mybatis-plus版本最近发现在数据库自动填充的日期类型,使用mybatis-plus的查询操作,发现一直为nulll解决办法把实体类里面的Date改为LocalDateTime@TableId(type = IdType.INPUT ) private Long id; private String name; private Integer age; private String email; private LocalDateTime cr原创 2021-07-12 15:00:04 · 2275 阅读 · 0 评论