数据库查出来Map<String,String> map
(‘ss’,222);
去除数据转 int 报错 : cannot be cast to
解决方法:
1.先转String,再转想要的类型:String str = ((“id”));
((“id”).toString())
注意:如果put的是整型的话,那么可以直接强转,但是如果放进去是字符串的话,强转就要报如上错误了
相关文章
- conda 删除环境报错 CondaEnvironmentError: cannot remove current environment. deactivate and run conda remo
- : cannot be cast to
- v-自定义权限指令与v-if互相影响导致报错Cannot read properties of null (reading ‘insertBefore‘)-原因分析:
- idea运行项目报错Cannot run program “C:\Program Files\Java\jdk1.8.0_121\bin\......解决办法
- cannot be cast to 报错处理
- 解决登录mysql时报错: Authentication plugin ‘caching_sha2_password‘ cannot be loaded
- windows搭建redis哨兵报错 :启动项目时All sentinels down, cannot determine where is mymaster master is running。
- mac 启动idea闪退,显示Cannot load JVM bundle...Value of IDEA_VM_OPTIONS is (null)
- ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails
- Cannot construct instance of 的错误解决