amqp-client-4.2.0.jar , rabbitmq-client.jar 冲突了。
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: com.rabbitmq.client.Connection.getId()Ljava/lang/String;
amqp-client-4.2.0.jar , rabbitmq-client.jar 冲突了。两个jar都有这个包名和类名,其中一个jar没有getid()。
com.rabbitmq.client.Connection.getId()Ljava/lang/String;