![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
刘老狗
这个作者很懒,什么都没留下…
展开
-
mybatis-plus SQL问题
最近挺久没写CSDN了,常年奋斗在与BUG战斗的第一线...今天第一次用Mybatis-plus+springboot进行开发,遇到一个小问题,自动装配的时候返回结果为Null;首先是去看SQL,之前没有设置过日志,所以要先添加日志,在mybatis-plus中添加log-impl: org.apache.ibatis.logging.stdout.StdOutImpl显示日志,在查看执行SQL后,原来是限制条件写为null=?,而不是ID=?搜索后在实体类加注解 @TableId(v原创 2021-09-24 14:57:37 · 128 阅读 · 0 评论 -
数据库ACID
原子性(Atomicity)一致性(Consistency)隔离性(Isolation)持久性(Durability)原创 2021-08-26 15:29:03 · 49 阅读 · 0 评论 -
ssm 图书管理项目BUG(中文乱码)(数据库长度问题)
今天在测试运行图书项目时遇到了两个BUG,第一个时在前端网@controller中传的中文数据,显示乱码,为此在web.xml加了一个过滤器,之后解决问题。<filter> <filter-name>encodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>原创 2021-06-02 17:30:47 · 335 阅读 · 0 评论 -
spring mvc bug
今天在GITHUB找了一个书城的源码,在导入后,发现错误,更新部分版本问题后,发现该错误较难解决。org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [book-context.xml]: Invocation of init method failed; nested excepti原创 2021-05-31 23:41:20 · 62 阅读 · 0 评论 -
IDEA:Access denied for user ‘root‘@‘localhost‘ (using password: YES)错误
今天在学习SPRING MVC项目整合时,Mybatis测试出现Access denied for user ‘root’@‘localhost’ (using password: YES)的错误。通过网上查找,大部分都是让我改数据库配置文件,在修改无效后,发现jdbc.driver=com.mysql.cj.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/smbms?serverTimezone=UTC&useSSL=false&us原创 2021-05-13 15:41:29 · 6493 阅读 · 2 评论