You can use this pre-initialized project and click Generate to download a ZIP file. This project is configured to fit the examples in this tutorial.
To manually initialize the project:
- Navigate to https://start.spring.io. This service pulls in all the dependencies you need for an application and does most of the setup for you.
- Choose either Gradle or Maven and the language you want to use.
- Type
quote-servicein the Artifact form field. - Click Dependencies and select Spring Web.
- Click Generate.
- Download the resulting ZIP file, which is an archive of a web application that is configured with your choices.
If your IDE has Spring Initializr integration, you can complete this process from your IDE.
You can also fork the project from GitHub and open it in your IDE or other editor.
| Setting | Value |
|---|---|
| Project | Maven |
| Language | Java |
| Spring Boot | 4.0.0 |
| Group | com.example |
| Artifact | quote-service |
| Name | quote-service |
| Package | com.example.quoteservice |
| Packaging | Jar |
| Java | 17 |
| Dependency | Description |
|---|---|
| Spring Web | Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the embedded container. |