没有为类型 SimpleHttpConnectionManager 定义方法 shutdown

这个之所以无法编译是因为,commons-httpclient包引用错误。

    /**
     * @since 3.0
     */
    public void closeIdleConnections(long idleTimeout) {
        long maxIdleTime = System.currentTimeMillis() - idleTimeout;
        if (idleStartTime <= maxIdleTime) {
            httpConnection.close();
        }
    }
    
    /**
     * since 3.1
     */
    public void shutdown() {
        httpConnection.close();
    }



猜你喜欢

转载自blog.csdn.net/z793397795/article/details/79020738
今日推荐