检查两处地方,一为IDEA【Compiler】下的【Build project automatically】勾选上,如图 二是Tomcat的设置,改为【Update classes and resoures】