*Eclipse defaults to automatically complete compilation under tomcat; while Intellij Idea does not automatically complete compilation under default tomcat, start from the following settings:
Enter "settings", find "compiler" as shown in the figure below, select the box selection option as shown in the figure,
check "Build project automatically", and save it.