解决 jar 包冲突问题 An attempt was made to call a method that does not exists.The attempt was made from....

一、问题描述

在这里插入图片描述
    Spring Boot 启动时报错了,可以看到 出现了 jar 包冲突 ,两个 jar 包 中包含同一个类。
    

二、解决方法

     将 The method’s class, javax.servlet.ServletContext, is available from the following locations: 提示的 jar 删除。
     在这里面找到冲突的 jar 包,删掉就好。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_41750142/article/details/113807529