STS 3.5.1中缺少Spring mvc模板

时间:2014-07-05 03:42:26

标签: spring-tool-suite

我下载了STS 3.5.1,当我去文件>> >> Spring Project 我只能看到“Simple Java”,“Simple Spring Maven”和“Simple Spring Web Maven”。

查看此网址https://lh3.googleusercontent.com/-iPROr9ozpRw/U7dzLG6CQrI/AAAAAAAAAN0/KGWXbml_OgI/w346-h500/sts+template.PNG

上的图片

我点击了刷新按钮。

更新

当我看到错误日志中的日志时,会出现这样的错误

  

eclipse.buildId = 3.5.1.201405030657-RELEASE-e43 java.version = 1.7.0_09   java.vendor = Oracle Corporation BootLoader常量:OS = win32,   ARCH = x86_64,WS = win32,NL = en_US框架参数:-product   org.springsource.sts.ide命令行参数:-os win32 -ws win32   -arch x86_64 -product org.springsource.sts.ide

     

警告星期六7月5日10:56:44 ICT 2014连接到   https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml   连接重置失败。重试尝试0开始

     

java.net.SocketException:连接重置为   java.net.SocketInputStream.read(SocketInputStream.java:189)at   java.net.SocketInputStream.read(SocketInputStream.java:121)at   sun.security.ssl.InputRecord.readFully(InputRecord.java:312)at at   sun.security.ssl.InputRecord.read(InputRecord.java:350)at   sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)at at   sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)     at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)     at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)     在   org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)     在   org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)     在   org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:271)     在   org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:276)     在   org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:194)     在   org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258)     在   org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)     在   org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647)     在   org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)     在   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)     在   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)     在   org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1074)     在   org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:621)     在   org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)     在   org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)     在   org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)     在   org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:422)     在   org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:273)     在   org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:172)     在sun.reflect.GeneratedMethodAccessor88.invoke(未知来源)at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:601)at   org.springsource.ide.eclipse.commons.internal.core.net.P2TransportService.stream(P2TransportService.java:139)     在   org.springsource.ide.eclipse.commons.core.HttpUtil.stream(HttpUtil.java:165)     在   org.springsource.ide.eclipse.commons.content.core.ContentManager.readFromUrl(ContentManager.java:326)     在   org.springsource.ide.eclipse.commons.content.core.ContentManager.refresh(ContentManager.java:387)     在   org.springframework.ide.eclipse.wizard.template.DownloadDescriptorJob.run(DownloadDescriptorJob.java:42)     在   org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)

这很奇怪,因为我可以使用eclipse浏览来访问该URL。

非常感谢您的帮助

1 个答案:

答案 0 :(得分:0)

我也可以使用浏览器访问URL,它也可以在STS内部运行。您是在防火墙或代理服务器后面吗?在这种情况下,它是否正确配置在Eclipse / STS网络首选项中?您还可以尝试使用更新版本的JDK运行Eclipse / STS(1.7.0_09似乎已过时,可能会尝试1.7.0_60)。