2017-07-17 96 views

回答

1

我的問題已修復。 這是我的代理設置問題。 我在的IntelliJ =>的Maven =>打開將Settings.xml

做出正確的CLIC我加入

<proxies> 
     <proxy> 
      <id>myproxy</id> 
      <active>true</active> 
      <protocol>http</protocol> 
      <host>myproxyhost</host> 
      <port>myproxyportnumber</port> 
      <username>myproxyusername</username> 
      <password>myproxpass</password> 
      <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts> 
     </proxy> 
</proxies> 
+0

如果你使用代理,你最好使用[Proxifier](https://github.com/XetRAHF/TiZi_AcrossTheGreatWall/tree/master/Downloads) –

1

您需要下載所有的彈簧引導依賴,因爲我在你的項目中看到pom.xml我假設你正在使用Maven作爲構建工具。爲了下載依賴關係,您可以在命令行上執行命令mvn clean install

對不起,我不是很熟悉的IntelliJ,但你也可以執行的IntelliJ Maven的命令,你可以檢查the documentation

+0

我確實如你所說,但沒有發生更新設置的XML文件。請看看我編輯的問題。 – scalp007

+0

即使我使用spring boot initializr從intellij創建spring boot項目。我有同樣的問題。 – scalp007

2

您需要下載庫,以便右擊項目,選擇「Maven的」選項然後在子菜單中單擊「重新導入」或「下載源和文檔」選項。它會下載庫。

+1

我照你說的做了,但沒有發生。我的機器上有互聯網連接。 – scalp007