I am trying to create a spring starter project in STS. I am selecting the gradle distribution and the Spring web dependency. When I click on finish I am getting the following error message. Error message
Don't forget to configure your proxy in your IDE.
Please look at this tutorial
Looks like a connection issue from your end caused due probably due to unstable network. In any case you can always add dependencies and download the project from https://start.spring.io
Related
I am new to STS and trying to run my first project in it. But it is not showing me run on server option. I have tried "clean install" but still, it is not working. When I checked targeted runtimes it is not showing any server in it. Kindly help me to resolve this issue.
My recommendations for getting started with the Spring Tools 4 for Eclipse are:
start the IDE with an empty workspace
create a new Spring Boot project using the wizard "Import Spring Getting Started Content" to import some getting started guides, for example the Rest Service example
if you decide to create an empty new Spring project, use the wizard "Spring Starter Project" - it is the direct integration for https://start.spring.io - and go from there
All those options get you started with a Spring Boot project which doesn't need a separate server to run on. Spring Boot comes with am embedded server component, so you can just start the Spring Boot application as a regular Java app. No need to install a local server or use the "Run on Server" option in the IDE.
I have downloaded STS 3.9.0 and Java 8 is installed on my machine.When I open STS and try to create new "spring starter project I get following error".
after researching I found that we can resolve this by changing url to "https://start.spring.io" this,but after doing that I get following error.
This looks like connection or proxy issue.
Please check your connection or firewall settings which is used by STS.
And as a second option, you can use https://start.spring.io/ for generating project and can import in your IDE.
Please forgive me if I missed any common sense. I am new to Spring Boot & Maven, using Spring Tool Suite (version 3.9.3).RELEASE with Maven (3.2.5) and Java (version 1.8.0_201) for work. I use company proxy and network as well.
I tried to new a Spring Maven project using New Spring Starter Project. I tried to use urls http://start.spring.io and https://start.spring.io, but both failed with error "SocketTimeoutException: connect timed out" and No content available.
Who can tell me what's the reason and how to solve? I noticed potential answers include "proxy issue", network connection issue, company firewall issue. But after I configured proxy with company proxy in settings.xml, the error is still there.
BTW, for who are looking for substitute solutions, I made it by choosing "New Spring Legacy Project" using "Simple Spring Maven".
You may also try Spring Initializr.
But Spring Initializr does not work for me neither.
You need to configure your network settings of STS.
You can do that by navigation to Window -> Preferences -> General -> Network Connections
and choose 'Active Provider' according to your use case - native worked for me.
I am using Spring Boot version 1.2.4.RELEASE to generate a simple web project. The full Url for creating this project is:
http://start.spring.io/starter.zip?name=demo3&groupId=org.test&artifactId=demo3&version=0.0.1-SNAPSHOT&description=Demo+project+for+Spring+Boot&packageName=demo3&type=maven-project&packaging=jar&javaVersion=1.7&language=java&bootVersion=1.2.4.RELEASE&dependencies=web
The download starter project opened in the STS 3.6.4.RELEASE with tons of errors: Missing artifact, ArtifactDescriptorException from the pom.xml file.
However, if I use version 1.1.12.RELEASE of the Spring Boot, I have no problem to create the startup project.
Is this a bug in the 1.2.4.RELEASE of the Spring Boot? I doubt it.
The project is OK.
Please to check your local env, specially connexion, maven configuration (setting.xml), ...etc
Good luck
If we start from this Spring guide , and just add the following additional dependencies in the build.gradle (without modifying any Java code), there will be a lot of error messages coming out during project compilng.
compile("org.springframework.boot:spring-boot-starter-thymeleaf:1.1.5.RELEASE")
compile("org.springframework:spring-test:4.1.1.RELEASE")
However, if we switch the version of spring-test from 4.1.1.RELEASE to 3.2.11.RELEASE, we can run this Spring project again.
Does anyone know the reason of this "conflict"?