When the configured Tomcat starts a new project, it stops automatically half way through.
After checking the configuration of artifacts, it turns out that the path is wrong:
File-> Project Structure-> Project Settings-> Artifacts-> Click the ‘+’ sign to add
Note the output directory:
After configuring artifacts, remember to add dependencies in Tomcat: