***************************
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>
所以,侦探们,请为了解决你们自己的难题,仔细查看问题出在哪里。
一切都是为了真相!