2017-07-17 56 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