- 博客(4)
- 收藏
- 关注
原创 Invalid bound statement (not found): 解决方案
当调用接口出现Invalid bound statement (not found):报错时(无效的绑定语句(未找到):com.mediway.hos.app.iam.uam.mapper. som) 除网上设置扫描包以外 idea有时因编写习惯 创建resource下mapper时,当工程模块过多,有时创建包时会指教使用mapper.xx创建,创建这种包时,使用.链接创建会认为是一个包,这种时候配置文件 mybatis-plus: mapper-locations: classpath*:
2022-05-12 14:42:47
485
原创 equals判断空指针异常
当一个确定的字符串与一个获取到的字符串进行比较的时候,如果是 获取到的字符串.equals(确定字符串),这种情况下如果获取到的字符串为null值,会报空指针异常,这时,可以转变为 确定字符串.equals(获取到的字符串),这样就不会报异常程序可以正常执行 ...
2021-07-08 08:56:59
289
原创 Web server failed to start. Port 8056 was already in use.端口占用
有时候没有关闭程序直接退出idea,下来想启动程序会报端口占用的错误 解决办法: 打开cmd命令行 输入netstat -ano 找到对应被占用的端口,记下最后一列的PID taskkill /F /pid PID(PID为刚才记下的端口PID) 再次启动项目就可以了 ...
2021-06-03 15:15:33
149
原创 com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column ‘l
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'last_operator_id' at row 1 数据库当中,last_operator_id字段设置长度过小,导致数据发生截断。数据库内字段长度改大就可
2021-04-28 14:10:30
2833
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人