Correct the classpath of your application so that it contains a single, compatible version of xxx

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    feign.form.spring.SpringFormEncoder.<init>(SpringFormEncoder.java:58)

The following method did not exist:

    feign.form.MultipartFormContentProcessor.addFirstWriter(Lfeign/form/multipart/Writer;)V

The method's class, feign.form.MultipartFormContentProcessor, is available from the following locations:

    jar:file:/E:/maven/apache-maven-3.6.3/repository/io/github/openfeign/form/feign-form/3.0.3/feign-form-3.0.3.jar!/feign/form/MultipartFormContentProcessor.class

It was loaded from the following location:

    file:/E:/maven/apache-maven-3.6.3/repository/io/github/openfeign/form/feign-form/3.0.3/feign-form-3.0.3.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of feign.form.MultipartFormContentProcessor

Disconnected from the target VM, address: '127.0.0.1:50145', transport: 'socket'

Process finished with exit code 1

出现这个问题,不是jar包重复了,就是jar包缺失了。

多了删,少了加。

“The following method did not exist:”,我是缺了,所以补上:

<!--即时通讯-->
<dependency>
   <groupId>io.github.openfeign.form</groupId>
   <artifactId>feign-form</artifactId>
   <version>3.5.0</version>
</dependency>

所以,侦探们,请为了解决你们自己的难题,仔细查看问题出在哪里。

一切都是为了真相!

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值