无法在Spring Tool Suite软件中创建SpingBoot项目
我正在研究STS,在创建一个新的Spring-Boot项目时,它显示了以下错误: 我尝试了两个选项,但没有起作用。
option-1:
Service URL:https://start.spring.io
Error Message: SunCertPathBuilderException: unable to find valid certification path to requested target
我遵循下面的说明,但没有工作
Export the corporate certificate (There may be other easier ways of doing this)
On Chrome, I went to https://start.spring.io
On the location bar clicked on the 'Lock' symbol next to https.
Selected 'Certificate(Valid)' on the ensuing pop-up.
On the resulting dialog box, clicked on the 'Certificate Path' tab, from under certificate path tree selected the root node, and then clicked on 'View Certificate'
On the resulting dialog box, clicked on the 'Details' tab and then clicked on 'Copy to File'
This brings up the 'Export wizard', clicked on 'Next'.
Left the certificate format to default 'DER encoded..', clicked on 'Next'.
Provided file name (.cer extension) for the certificate.
Clicked Finish.
The above steps exported a certificate to a file that I imported into truststore (cacerts).
To import
Opened a 'Command' prompt as Administrator to import the certificate
Went to bin directory of Java installation (this step is not needed if jre/bin is in your path)
Ran the following:
C:\Program Files\Java\jre1.8.0_271\bin>keytool -importcert -alias your-alias -keystore "C:\Program Files\Java\jre1.8.0_271\lib\security\cacerts" -storepass changeit -file C:\certificate-file-location\saved-certificate-file.cer
(Substitute your java location, certificate file location and certificate file name as appropriate. The 'storepass' should be 'changeit'.)
Restarted STS
,我也尝试了以下选项,但它
在sts.ini文件中的属性没有更新,并重新启动了STS,但没有使用
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk\jre1.8.0_271\lib\security\cacerts
-Djava.net.ssl.trustStorePassword=changeit
选项-2:
Service URL:http://start.spring.io
Error Message: JSONException: A JSONObject text must begin with '{' at character 1
注意:我也落后于公司代理。
我尝试了所有网络连接选项,也喜欢:手动,直接和本机无用
当前的STS版本: 3.8.4
I am working on STS and while creating a new spring-boot project, it shows following errors:
I tried two options but it didn't work.
Option-1:
Service URL:https://start.spring.io
Error Message: SunCertPathBuilderException: unable to find valid certification path to requested target
I followed below instructions but didn't work
Export the corporate certificate (There may be other easier ways of doing this)
On Chrome, I went to https://start.spring.io
On the location bar clicked on the 'Lock' symbol next to https.
Selected 'Certificate(Valid)' on the ensuing pop-up.
On the resulting dialog box, clicked on the 'Certificate Path' tab, from under certificate path tree selected the root node, and then clicked on 'View Certificate'
On the resulting dialog box, clicked on the 'Details' tab and then clicked on 'Copy to File'
This brings up the 'Export wizard', clicked on 'Next'.
Left the certificate format to default 'DER encoded..', clicked on 'Next'.
Provided file name (.cer extension) for the certificate.
Clicked Finish.
The above steps exported a certificate to a file that I imported into truststore (cacerts).
To import
Opened a 'Command' prompt as Administrator to import the certificate
Went to bin directory of Java installation (this step is not needed if jre/bin is in your path)
Ran the following:
C:\Program Files\Java\jre1.8.0_271\bin>keytool -importcert -alias your-alias -keystore "C:\Program Files\Java\jre1.8.0_271\lib\security\cacerts" -storepass changeit -file C:\certificate-file-location\saved-certificate-file.cer
(Substitute your java location, certificate file location and certificate file name as appropriate. The 'storepass' should be 'changeit'.)
Restarted STS
I tried below options also but it didn't work
Updated below properties in STS.ini file and restarted the STS but no use
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk\jre1.8.0_271\lib\security\cacerts
-Djava.net.ssl.trustStorePassword=changeit
Option-2:
Service URL:http://start.spring.io
Error Message: JSONException: A JSONObject text must begin with '{' at character 1
Note: I am also behind a corporate proxy.
I tried all network connections options also like: Manual, DIrect and Native no use
Current STS version:3.8.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请阅读春季团队在这里,请阅读此公告。 。
正如您在问题中提到的
但根据公告,他们放弃了维护和支持Spring Tool Suite的较旧版本( 3.x ),目前仅支持版本< strong> 4.x
如果您使用日食作为套件的平台,则可能是您使用与Spring Tools Suite不兼容的新版本的Eclipse 3.x 3.x ,
因此您需要如果您想从现在开始使用Tools Suite,请升级到此版本。
Please read this announcement from spring team here.
As you mention in your question
But according to the announcement they are dropping maintenance and support for older versions of spring tool suite (3.x) and currently only supporting version 4.x
If you are using eclipse as platform for suite it might be that you use a new version of eclipse that is not compatible with spring tools suite 3.x
So you need to upgrade to this version if you wish to work with tools suite from now on.