- 博客(3)
- 收藏
- 关注
原创 踩坑Caused by: java.lang.IllegalArgumentException: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate
找了很多方法都无法成果结果,这个问题很坑,其实是springboot和mybatisplus的版本问题。降低springboot的版本为2.x或者提高mybatisplus为最高版本即可解决问题。
2024-03-14 20:08:17
833
1
原创 解决redis序列化存储
这是因为RedisTemplate默认使用了JDK的序列化方式存储了key和value。当使用在redisTemplate向redis存储一个数据,redis中的数据是。添加配置文件config,即可解决该问题。
2024-01-12 09:53:33
552
原创 解决:Invalid bound statement (not found): org.example.service.UserService.getBaseMapper
在运行test方法时,报错Invalid bound statement (not found): org.example.service.UserService.getBaseMapper。改成@MapperScan("org.example.mapper")或者直接将该注解舍去,即可解决该问题。发生该错误的原因可能是该注解扫描到了其他包中的mapper接口,运行ServiceImpl的方法时,出现该错误。发现原因在@MapperScan。
2024-01-07 19:12:58
891
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人