Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

使用httpclient设置Request的代码

RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(10000).setConnectionRequestTimeout(10000).setSocketTimeout('uea60').build();

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
402 views
Welcome To Ask or Share your Answers For Others

1 Answer

native2ascii 可以看这个是啥值

其实就一个 Unicode 字符 但是可以当成数字用

System.out.println( 'uea60');
System.out.println((int) 'uea60');
?
60000

估计你现在的具体场景应该用的是下面那个 60000 吧

重新写了一个例子

    public static void newPrint(int number){
        System.out.println(number);
    }
    public static void main(String[] args) {
//        RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(10000).setConnectionRequestTimeout(10000).setSocketTimeout('uea60').build();
        System.out.println( 'uea60');
        System.out.println((int) 'uea60');
        newPrint( 'uea60');
        newPrint((int) 'uea60');
    }

结果

?
60000
60000
60000

(PS ? 显示不全是字体原因 是一个中文字 如果你电脑和我电脑一样显示的是一个类似口的东西话)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...