This is how to import spring boot with maven or gradle project in intellij idea.
1.Open your intellij idea
2.In top left menu, choose “File” -> “New” -> “Project from existing sources…”
3.Choose your project in your local disk, but make sure there is a pom.xml or .gradle file inside your project. Then click “OK”
4.Select option “import project form external model” and choose your build tools type. In this example i’m using maven for build tools.
5.Then click “Next” with default settings
6.Finally, select your SDK.