java - ’uea60’在下面是什么意思?
問題描述
使用httpclient設(shè)置Request的代碼
RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(10000).setConnectionRequestTimeout(10000).setSocketTimeout(’uea60’).build();
問題解答
回答1:native2ascii 可以看這個(gè)是啥值
其實(shí)就一個(gè) Unicode 字符 但是可以當(dāng)成數(shù)字用
System.out.println( ’uea60’);System.out.println((int) ’uea60’);?60000
估計(jì)你現(xiàn)在的具體場景應(yīng)該用的是下面那個(gè) 60000 吧
重新寫了一個(gè)例子
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’); }
結(jié)果
?600006000060000
(PS ? 顯示不全是字體原因 是一個(gè)中文字 如果你電腦和我電腦一樣顯示的是一個(gè)類似口的東西話)
相關(guān)文章:
1. bootstrp是col-md-12列的,只有col-md-10有內(nèi)容,可以讓沒有內(nèi)容的不占據(jù)位置嗎;2. 常量在外面不加引號(hào)會(huì)報(bào)錯(cuò)。3. wordpress里,這樣的目錄列表是屬于小工具還是啥?4. android - Genymotion 微信閃退 not find plugin.location_google.GoogleProxyUI5. python如何設(shè)置一個(gè)隨著系統(tǒng)時(shí)間變化的動(dòng)態(tài)變量?6. 百度地圖 - Android app中準(zhǔn)備接入地圖sdk,百度VS高德哪個(gè)好一點(diǎn)?7. 我的怎么不顯示啊,話說有沒有QQ群什么的8. mysql federated引擎無法開啟9. MySQL 使用 group by 之后然后 IFNULL(COUNT(*),0) 為什么還是會(huì)獲得 null10. sublime text3安裝package control失敗
