我的是部署到自己的虚拟机的tomcat上
1、新建web项目并做相关的设置

2、编辑配置参数 Edit Configurations

3、点击 + 号,选择Tomcat Server -》Remote

4、点击设置host后面的 “...” ,设置Deployment

设置Mappings

5、在你的项目的webapp下新建一个index.html文件,随便写些内容,点击运行

6、效果

参考:https://blog.csdn.net/moonshine_1988/article/details/80505141
网友评论