idea 有几个重要设置的路径。首先是 project 里面的 project compile output,我把它设置为 tomcatPath\webapps\项目名称\classes Artifacts 路径设置为tomcatPath\webapps\项目名称