java - '\uea60'在下面是什么意思?
伊谢尔伦
伊谢尔伦 2017-04-18 10:48:08
0
1
1175

使用httpclient设置Request的代码

RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(10000).setConnectionRequestTimeout(10000).setSocketTimeout('\uea60').build();
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
黄舟

native2ascii You can see what this value is

Actually, it’s just a Unicode character, but it can be used as a number

System.out.println( '\uea60');
System.out.println((int) '\uea60');

60000

It is estimated that in your current scenario, you should use the 60000 below

Rewritten an example

    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');
    }

Results


60000
60000
60000

(PS The incomplete display is due to the font, which is a Chinese character. If your computer displays something similar to a mouth like mine)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template