ControlCenterServer.java 文件源码

java
阅读 66 收藏 0 点赞 0 评论 0

项目:activemq-samples 作者:
protected ControlCenterServer() throws Exception {
    ControlCenterApp application = new ControlCenterApp();
    RuntimeDelegate delegate = RuntimeDelegate.getInstance();

    Map<Object, Object> mappings = new HashMap<Object, Object>();
    mappings.put("json", "application/json");
    mappings.put("xml", "application/xml");

    JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class);
    bean.setAddress("http://localhost:9000/services" + bean.getAddress());
    bean.setExtensionMappings(mappings);
    server = bean.create();
    server.start();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号