1

此代码用于 RESTEasy 完美工作。随着 ProxyFactory 和 ClientExecutor 的弃用,我需要选择。

PoolingClientConnectionManager connectionManager = new PoolingClientConnectionManager();
DefaultHttpClient httpClient = new DefaultHttpClient(connectionManager);
ClientExecutor clientExecutor = new ApacheHttpClient4Executor(httpClient);
MyClass client = ProxyFactory.create(MyClass.class, "http://localhost", clientExecutor);
4

0 回答 0