Open Maven Projects facet (at the right of IDEA), then double-click:
- clean (if something previously generated at target/)
- package (build war, found at target/javacourse181112-1.0-SNAPSHOT.war)
- tomcat7 -> run-war (right-click, run or debug mode)
Open Maven Projects facet (at the right of IDEA), then double-click: