【解决】Caused by: java.lang.ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory

72 阅读1分钟

报这个错误是原因之一缺少了org.apache.activemq:activemq-pool这个依赖,加上这个依赖就可以了。

<!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-pool -->
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-pool</artifactId>
    <version>5.15.7</version>
</dependency>