使用Spring STS Starter Wizard时出错

时间:2016-02-05 17:28:31

标签: eclipse spring-boot spring-tool-suite

我创建了很多Spring启动应用程序,我喜欢使用Spring STS启动程序向导让我开始,但是今天我突然看到每次尝试打开“Spring Starter Wizard”时都会弹出一个错误窗口

STS版本:3.7.2

这是弹出窗口中的错误。 enter image description here

以下是我在日志中看到的错误。

java.lang.Error: java.io.FileNotFoundException: http://start.spring.io
12129         at org.springframework.ide.eclipse.wizard.gettingstarted.boot.NewSpringBootWizard.init(NewSpringBootWizard.java:75)
12130         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:119)
12131         at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
12132         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
12133         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
12134         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
12135         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
12136         at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
12137         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
12138         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
12139         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
12140         at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
12141         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
12142         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
12143         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
12144         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
12145         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
12146         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
12147         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
12148         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
12149         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
12150         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
12151         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
12152         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
12153         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
12154         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
12155         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
12156         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
12157         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12158         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
12159         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12160         at java.lang.reflect.Method.invoke(Method.java:483)
12161         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
12162         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
12163         at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

我尝试通过浏览器访问http://start.spring.io/sts,然后收到此消息。

  

404 Not Found:请求的路线('start.spring.io')不存在。

2 个答案:

答案 0 :(得分:3)

您必须更改 STS 中的网络设置。

  

选择窗口标签 - >偏好 - >一般 - >网络连接和   更改设置。

将Active Provider设置为手动,然后编辑代理条目中的主机和端口详细信息。应用设置并单击“确定”。

这对我有用。希望它适合你。

谢谢

答案 1 :(得分:0)

此问题现已解决。似乎http://start.spring.io/sts存在一些问题。现在又回来了。