引入Activemq的依赖,connectionFactory类为什么不能解析呢
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
2018-06-21
你可以去maven库里自己找一个javax.jms依赖导入,课程里的那个依赖我这儿也不好使
<dependencies> <dependency> <groupId>javax.jms</groupId> <artifactId>javax.jms-api</artifactId> <version>2.0.1</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-core</artifactId> <version>5.7.0</version> </dependency>
举报