1. 程式人生 > >Eclipse設置代理上網

Eclipse設置代理上網

ja

一、如果在內網開發項目,因為電腦不能上網,可能會出現在導入開源框架的jar包後,配置xml文件是,不出現語法檢測和語法提示,Eclipse也提示告警:

no grammar constraints (dtd or xml schema) referenced in the document


解決方法1 導入xml的相關約束

xml-->xml catalog ,增加User Specified Entries


解決方法2:讓Eclipse設置代理上網

window-->preferences-->general-->network connections

選中 manual proxy configuration: 依次填入http proxy 和https proxy以及port

另外,如果代理需要用帳號和密碼就需要選中 Enable proxy authentication,

然後填上 user name 及password

Active Provider:選擇Manual

Proxy bypass:過濾到內網ip,如git服務器,否則設置代理之後,無法從git服務器上pull和push代碼



本文出自 “小魚的博客” 博客,謝絕轉載!

Eclipse設置代理上網