设置activemq登录账户和密码

来源:互联网 发布:如何快速提高淘宝信誉 编辑:程序博客网 时间:2024/06/04 19:50

1、第一步:<property name="authenticate" value="true" />,true:需要认证; false:不需要认证。

<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
    <property name="name" value="BASIC" />
    <property name="roles" value="user,admin" />
    <!-- set authenticate=false to disable login -->
    <property name="authenticate" value="true" />
</bean>
2、第二步:修改jetty-realm.properties文件

admin: admin123, admin
user: user, user

备注:第一个为用户名  第二个是密码 第三个是角色

原创粉丝点击