1. Configure maven
File->Setting
2. Configure jdk
File->Project Structure
3. Open the project, found inside the pom.xml file. Right, select Add as maven project
Then it will become like the figure below.
4. Click the icon under maven, re-import all maven dependencies.
Then configure Tomcat and other needs.