I created this project by following https://www.baeldung.com/spring-boot-start Steps below:
- Go to https://start.spring.io/, give proper names, click Generate;
- unzip the auto downloaded zip file, open the folder in Intellij;
- Follow this link: https://stackoverflow.com/a/74958669/4117496 to configure dependencies in your Intellij;
- Open SpringBootExampleApplication.java and it should run!