Table of Contents
Prerequisite
After those are installed, press Cmd + Shift + P and search Spring Initializr: Create a Maven Project, follow the step:
Language: Java
Spring Boot version: latest stable
Group Id: com.example
Artifact Id: store
Packaging: Jar
Java version: 17 or 21
You can give it a different name under Artifact Id .
For dependencies, choose:
Spring Web
Spring Boot DevTools
Then select a folder to save the project.
After setup, structures are as follows:
store/
├── mvnw
├── mvnw.cmd
├── pom.xml
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── example/
│ │ │ └── store/
│ │ │ ├── StoreApplication.java
│ │ │ ├── controller/
│ │ │ │ └── HelloController.java
│ │ │ ├── service/
│ │ │ │ └── UserService.java
│ │ │ ├── repository/
│ │ │ │ └── UserRepository.java
│ │ │ └── model/
│ │ │ └── User.java
│ │ └── resources/
│ │ ├── application.properties
│ │ ├── static/
│ │ └── templates/
│ └── test/
│ └── java/
│ └── com/
│ └── example/
│ └── store/
│ └── StoreApplicationTests.java