Can't create a spring starter project in spring tool suite
Solution 1
It may be late, but others might find it useful. I faced the same issue when I was trying to create a project in eclipse using Spring Starter Project.
What I did was change the Service Url from http://start.spring.io/
to https://start.spring.io/
. I just changed the http
to https
and it worked. I don't know if it is a security related error or what, but I was able to create a project.
Solution 2
Edit the URL to https://start.spring.io
instead of http://start.spring.io
(HTTP ⟶ HTTP/S).
Solution 3
This is what I did:
- In eclipse go to -> window -> preferences -> General -> Network Connections.
- In Network Connections, select 'Direct' for Active Provider. And click Apply.
- Now try creating spring starter project with - https://start.spring.io/ url.
Solution 4
This looks like a connection problem with start.spring.io (or a proxy in between your machine and start.spring.io) - or a temporary problem on start.spring.io.
If this problem persists, you can easily workaround it by using your browser, go to http://start.spring.io, select the boot modules you would like to use, and download a ZIP of the project. Then unpack it locally and import it using "Import -> Maven -> Import as Existing Maven Project" into STS.
Solution 5
Changing the URL from http://start.spring.io
to https://start.spring.io
works for me .
In my case, I am in a corporate, and for that first you need to set up the proxy in the eclipse IDE; only then will it work.
董嘉鹏
Updated on July 18, 2022Comments
-
董嘉鹏 almost 2 years
JSONException: A JSONObject text must begin with
{
at character0
I used
spring-tool-suite-3.9.1.RELEASE-e4.7.1a-win32-x86_64
, why can't I create a project directly inFile->New->Spring Starter Project
I got the screenshot below.
-
Toby Speight over 4 yearsThough we thank you for your answer, it would be better if it provided additional value on top of the other answers. In this case, your answer does not provide additional value, since another user already posted that solution. If a previous answer was helpful to you, you should vote it up instead of repeating the same information.
-
sandeepnegi1996 over 4 yearsThanks I will make sure of it from next time thank you for helping me out.
-
Richard Kiefer about 4 yearsHi, can you please elaborate a bit on your answer? It appears not obvious why a JSON parsing error occurs due to the lack of ca certificates, especially why the specific ones that you mention are needed.
-
sandeepnegi1996 about 4 yearsHi @TobySpeight but I did mentioned that if you are inside the corporate you need to first go and set the proxy for the particular user since it can be really problematic like in my case