SpringBoot报java.lang.NoSuchMethodError: org.springframework.util.CollectionUtils.lastElement(Ljava/u

SpringBoot报java.lang.NoSuchMethodError: org.springframework.util.CollectionUtils.lastElement(Ljava/util/Set;)Ljava/lang/Object;

原因: Spring中引入了重复的Jar包,导致调用冲突
解决: 因为pom.xml中引入了spring-boot-starter-web ,同时pom.xml也引入了spring-corespring-beans,这里去掉spring-corespring-beans即可。



猜你喜欢

转载自blog.csdn.net/ththcc/article/details/81629261