idea tomcat热部署设置
时间: 2023-09-20 18:11:09 浏览: 208
在IDEA中配置Tomcat的热部署,可以按照以下步骤进行设置。首先,打开IDEA开发工具并打开Java的Web项目。然后点击Run菜单,选择Edit Configurations...菜单,打开Run/Edit Configurations对话框。在左上角的加号处点击,选择Tomcat Server,再选择Local子菜单。设置一个名称,并关联一个已下载好的Tomcat目录路径。在Run/Debug Configurations对话框中,选择Deployment选项卡,对需要部署的项目文件进行设置。点击加号选择Artifact,然后选择war exploded方式。这种方式以文件夹方式部署,支持热部署。添加完Artifact文件后,可以设置Application context,默认应用路径为根目录。然后回到Server选项卡,设置On Update action和On frame detectivation选项,都设置为Update classes and resources,表示类文件和资源文件都会更新。如果只设置On Update action选项,则需要手动点击更新,设置了On frame detectivation,会自动监测窗口并更新文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [IDEA中配置Tomcat热部署](https://blog.csdn.net/tqs314/article/details/81268697)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [如何在idea中设置Tomcat热部署](https://blog.csdn.net/zc1320030382/article/details/79217369)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文