nested exception is java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.lang.String
springboot无法启动,一直报上述问题,即使把pageHelper相关代码删除,仍然然报
#pagehelper.helper.dialect = mysql #pagehelper.reasonable=true #pagehelper.support-methods-arguments=true #pagehelper.params=count=countSql
pagehelper.helper-dialect=mysql pagehelper.reasonable=true pagehelper.support-methods-arguments=true pagehelper.params=count=countSql
处理方法,把上面的注释,删除

在尝试启动SpringBoot应用时遇到一个ClassCastException,问题根源在于试图将LinkedHashMap转换为String。即使删除PageHelper的相关配置,错误仍然存在。解决方案是检查和修正配置文件中可能存在的类型不匹配问题,特别是与数据库连接或数据访问相关的配置。确保所有属性值的类型与预期相符。
2773

被折叠的 条评论
为什么被折叠?



