我是靠谱客的博主 年轻巨人,这篇文章主要介绍The following method did not exist: org.springframework.util.CollectionUtils.newHashMap(I)Lja.......,现在分享给大家,希望可以做个参考。
一开始报错
java: 程序包org.springframework.jdbc.datasource.lookup不存在
是因为jar包没有加载完全。或者jar包不存在,需要重新导包
接下来报错:
The following method did not exist: org.springframework.util.CollectionUtils.newHashMap(I)Lja......
查看可以看出org.springframework.jdbc:5.2.4的两个依赖包spring-core与spring-beans的版本都是5.1.6,由于版本的冲突,有可能在执行的时候,会出现某些方法不存在的情况。

解决方法:
1、在当前项目中导入依赖,将org.springframework.spring.jdbc的jar包版本降到5.1.6
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.1.6.RELEASE</version>
2、在File-Project Structure的Modules中,在当前项目中引入org.springframework.spring.jdbc:5.1.6版本

最后
以上就是年轻巨人最近收集整理的关于The following method did not exist: org.springframework.util.CollectionUtils.newHashMap(I)Lja.......的全部内容,更多相关The内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复