我刚刚意识到,ProxyFactory类在RestEasy版本3.0.0中被标记为弃用。遗憾的是,不支持这个类的方法在任何地方都没有文档记录。我以前用这种方式初始化服务,但是新的方法是什么呢?
protected static final String URL = "http://localhost:12345"+"/api";
protected static final MyService myService = ProxyFactory.create(MyService.class, URL); 发布于 2013-09-11 14:34:40
RESTEasy 3.0.2( http://howtodoinjava.com/2013/08/03/jax-rs-2-0-resteasy-3-0-2-final-client-api-example/ )
ResteasyClient client = new ResteasyClientBuilder().build();
ResteasyWebTarget target = client.target(URL);
MyService myService = target.proxy(MyService .class);https://stackoverflow.com/questions/17858714
复制相似问题