idea:
file-->project structure --> Artifacts --> 点+号 web application exploded from modules --> 添加当前项目的exploded --> 继续+号添加web application archive for exploded --> 有跳出东西选默认
点击工具栏的“”build” --> build artifacts --> all artifacts --> build
去ideaproject里去找这个war包,把它放到相应的Tomcat安装目录下的webapps
运行starup.sh或者startup.bat,重启Tomcat,输入url如:Http://localhost:8080/ssmproject/index.jsp
eclipse:
右击项目 --> export --> 找到web的war file -->点击browse选择导出位置并指定运行环境 --> 把war放到Tomcat的webapps里