- 博客(4)
- 收藏
- 关注
原创 spring 整合mybatis时遇到BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined
pring mybatis整合时,提示 BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring-dao.xm 原因是 在mybatis配置文件xml中,可以使用mappers来将映射文件注册到配置文件中, <mappers> <package name="com.js.pojo"/>...
2021-12-16 13:45:39
739
原创 Public Key Retrieval is not allowed
使用mysql8.0数据库,连接时遇到问题, 解决办法两种 1.使用navicate连接一下数据库,再重新启动程序即可, 2.在数据库连接的url后边加&allowPublicKeyRetrieval=true
2021-11-05 11:30:53
186
原创 2021-11-05 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
数据库名称或者密码错误
2021-11-05 11:28:44
205
原创 mybatis配置properties时在mybatis-config中无法使用¥{url}获取到值。
原因描述 :底层数据库错误,无法连接 使用工具idea 功能。配置mybatis文件。读取properties时,只有url无法读取到。其他的driver,username,password都可以读取。 各种方法找完都不管用。 原因: 在mybatis-config.xml文件中配置时,因为字符串转义问题,所以&号使用《&;》代替 但是在properties文件中,不会识别到<&;>,所以如果复制过去,再读取就会格式错误 db.properti.
2021-11-05 10:53:24
381
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人