IDEA Tomcat 热部署

原文

intellij-idea-auto-reload-a-web-application-hot-deploy

注意事项

  • 一定要在Debug模式下运行
  • @RequestMapping这类注解在这个方法中是没有办法Hot Deploy的.
  • On frame deactivation option

Click this button if you want the application to be updated automatically when you switch from IntelliJ IDEA to a different application. (Switching to a different application is referred to as frame deactivation.)

文档
就是说当焦点从IDEA IDE移到另外一个程序的时候, 我们的web项目就会被自动更新.

Tomcat的webapps/ROOT文件夹

将web工程部署到Tomcat的webapps/ROOT文件夹中, 那么直接通过http://host:port就能访问到该项目, 而不需要加上工程名. 这也是IDEA的默认做法.

你可能感兴趣的:(IDEA Tomcat 热部署)