使用 Spring STS 初学者向导时出错

Error while using Spring STS Starter Wizard

我创建了很多 Spring 引导应用程序,我喜欢使用 Spring STS 启动向导来启动我,但是今天突然间我开始看到一个错误 window 每次我尝试打开 "Spring Starter Wizard".

时都会弹出

STS 版本:3.7.2

这是弹出窗口中的错误 window。

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

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(ActionContributionItem.java:511)
12134         at org.eclipse.jface.action.ActionContributionItem.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.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.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: Requested route ('start.spring.io') does not exist.

此问题现已解决。 http://start.spring.io/sts 似乎有一些问题。现在已经恢复了。

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

Select Window Tab -> Preferences -> General -> Network Connection and change the setting.

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

这对我有用。希望对你有用。

谢谢