1,首先打开WenStrom中的Perferences选项

2,找到Build,Execution,Deployment选项中的Deployment,选择+,填写名称tomcat,type选择-local or mounted folder


3,编写tomcat服务器配置
1.connection选项卡
其中Upload/download/project files
选择要部署的tomcat服务器目录,其中需要事先在webapps下创建工作目录。
web server root URL填写http://localhost:8080/webstrom(工作目录)
3.Mappings目录
Mappings目录选择需要部署文件的目录即可。
4.将文件上传到tomcat服务器
Tools-Deployment-Upload to tomcat即可
5.通过tomcat服务器来运行本地html文件
在地址栏输入:http://local:8080/webstrom(工作目录)/test1.html(上传的html文件的名称)
即可成功使用tomcat服务器运行在webstrom上编写的文件!