通过上一篇文章https://blog.csdn.net/lycz_tpself/article/details/81115918可以完成ActiveMQ后端使用要完成的配置,本文基于上篇博文介绍前端ajax使用所需要的额外配置。
- 新增的jar包
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.15.4</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-web</artifactId>
<version>5.15.4</version>
</dependency>
- 添加的web.xml配置
<!-- 配置支持ajax的jms -->
<context-param>
<param-name>org.apache.activemq.brokerURL</param-name>
<param-value>tcp://127.0.0.1:61616</param-value>
</context-param>
<servlet>
<