# ActiveMQ Artemis 集成 Spring 中的配置

**URL:** <https://www.isharkfly.com/t/activemq-artemis-spring/14991>\
**Category:** 程序语言\
**Tags:** spring, mq, java\
**Created:** [September 19, 2023, 7:13pm UTC](https://www.isharkfly.com/t/activemq-artemis-spring/14991 "2023-09-19T19:13:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [September 19, 2023, 7:13pm UTC](https://www.isharkfly.com/t/activemq-artemis-spring/14991/1 "2023-09-19T19:13:06Z")

</div>

在 Spring 2 的版本下，有关 Artemis 的配置参数为：

```auto
spring.artemis.mode=native
spring.artemis.host=nas1120
spring.artemis.port=61616
spring.artemis.user=USERNAM
spring.artemis.password=PASS

```

上面的配置已经在 Spring 3 的时候修改为：

`spring.activemq.broker-url=tcp://127.0.0.1:61616`

这种配置方式了。

主要是把 Host 和 Port 分开的配置合并到一起了，同时上面需要添加的协议是 tcp
