war和war exploded的区别
时间: 2023-10-02 13:08:33 浏览: 149
war和war exploded的区别在于部署方式和获取路径的不同。war模式是将WEB工程以包的形式上传到服务器,而war exploded模式是将WEB工程以当前文件夹的位置关系上传到服务器。在war模式下,项目被打包成war包后再发布到服务器,而在war exploded模式下,项目的文件夹、jsp页面、classes等直接被移动到Tomcat部署文件夹中进行加载部署。因此,war exploded模式支持热部署,可以在开发过程中实时显示修改的内容。在获取路径方面,war模式获取的是Tomcat项目路径,而war exploded模式获取的是项目在磁盘上的路径。\[1\]
#### 引用[.reference_title]
- *1* [Tomcat部署时war和war exploded区别](https://blog.csdn.net/zouyang920/article/details/122998079)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [war和war exploded的区别](https://blog.csdn.net/qq_43463117/article/details/114140612)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文