These are the steps to create a new Spring Boot project in IntelliJ:
Create a GitHub Repository
- Create a GitHub repo without a .gitignore file.
- Clone the repository in your local file system with command git clone [repo url] . This will create a new directory using the repo name.
Create a New Project
- Create a new project in IntelliJ using the Spring Initializr.
- Under Maven settings, the group will be an id that tipically starts with the reverse domain (com.example.something). The artifact is a name. Name and artifact will normally match.
- Add the dependencies for web and thymeleaf.
- Select the directory that corresponds to the git repo. This directory can be both the project directory and the module directory.
- Edit the .gitignore file as needed. Add .mvn/
- Commit and push changes:
- git add *
- git commit -m “Initial commit”
- git push