search

Home  >  Q&A  >  body text

java - '\uea60'在下面是什么意思?

使用httpclient设置Request的代码

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

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-18 10:50:08

    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)

    reply
    0
  • Cancelreply