Intellij IDEA Auto reload a web application (hot deploy)

摘要: In this tutorial, we will show you how to ‘hot deploy’ or ‘hot swap’ a web application in IDEA.

In this tutorial, we will show you how to ‘hot deploy’ or ‘hot swap’ a web application in IDEA.

Note
Tested with Intellij IDEA 14 and 15

1. Select exploded WAR

Go Run –>> Edit Configurations –>> “Deployment” tab, clicks + icon –>> select an “exploded artifact”

2. Update classes and resources

Select “Server” tab, update the following options :

  1. On ‘Update’ action -> Update classes and resources
  2. On frame deactivation -> Update classes and resources

3. Run in Debug Mode

Run web application in Debug mode. Try to modify some codes or resources (JSP or html), the modified classes and resources will be reloaded automatically.

Done.

References

  1. How to configure hot deploy in Eclipse

上一篇: Java RMI Hello World example
下一篇: Maven Deploy web application to WildFly
 评论 ( What Do You Think )
名称
邮箱
网址
评论
验证
   
 

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号