【发布时间】:2014-12-11 20:39:01
【问题描述】:
如何从 TestRes 资源中检索 mapProp ?
我正在使用嵌入码头的运动衫。
Map<String,Object> mapProp= new HashMap<String,Object>()
mapProp.put("message","HelloWorld")
URI baseUri = UriBuilder.fromUri("http://localhost/").port(9998).build();
ResourceConfig config = new ResourceConfig(TestRes.class);
config.addProperties(mapProp)
Server server = JettyHttpContainerFactory.createServer(baseUri, config);
谢谢
【问题讨论】:
标签: java rest jersey jetty jax-rs