activemq - 修改服务密码

查看文件:conf\activemq.xml,

在 shutdownHooks 代码块,增加 plugins 代码块即可

	<!-- destroy the spring context on shutdown to stop jetty -->
	<shutdownHooks>
		<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
	</shutdownHooks>

	<!-- 验证模块 -->
	<plugins>
		<simpleAuthenticationPlugin>
			<users>
				<!-- authenticationUser username="admin" password="admin" groups="users,admins" -->
				<authenticationUser username="dev" password="dev" groups="users"/>
			</users>
		</simpleAuthenticationPlugin>
	</plugins>

posted on 2024-11-04 09:06  疯狂的妞妞  阅读(43)  评论(0编辑  收藏  举报

导航