依然maven依赖

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.9.9.1</version>
</dependency>

Broker启动类

/**
 * @author songzixian
 * @create 2019-07-19 上午 7:42
 * @description
 */
public class EmbedBroker {

    public static void main(String[] args) throws Exception {
        BrokerService brokerService = new BrokerService();

        brokerService.setUseJmx(true);
        brokerService.addConnector("tcp://localhost:61616");

        brokerService.start();
    }
}
Last modification:July 19, 2019
如果觉得这篇技术文章对你有用,请随意赞赏