1、点击项目结构选项
    image.png
    2、指定输出artifacts的目录为Tomcat的webapps中的demo目录。
    image.png
    3、启动Tomcat,查看demo目录中的内容。
    image.png
    image.png