IntelliJ IDEA Run / debug web application on Tomcat

摘要: This article shows you how to run or debug a web application on Tomcat server, using IntelliJ IDEA.

This article shows you how to run or debug a web application on Tomcat server, using IntelliJ IDEA.

Note
Unlike Eclipse IDE, there is always a ‘server view’ to configure the add server, IntelliJ do things differently, you need to add an “artifact (war file)” first, then only the “server view” will be displayed at the bottom.

1. Tomcat Plugin

1.1 File –>> Settings –>> Type Plugin –>> Make sure Tomcat and TomEE Integration is checked.

2. Run/Debug Configuration

2.1 Run –>> Edit Configurations…

2.2 Clicks + icon, select Tomcat Server –>> Local

3. Tomcat Configuration

3.1 Clicks on the “Deployment” tab, + icon to select an artifact to deploy. For break point debugging, always choose the exploded war version.

3.2 Clicks on “Server” tab, select a Tomcat server, and update the on 'Update' action to “Update classes and resources” – for hot swap.

4. Application Servers

4.1 Now you can see an “Application Servers” view displayed at the bottom panel.

Start or debug your web application, done.

上一篇: JavaFX Animated Ball Example
下一篇: Spring MVC How to handle max upload size exceeded exception
 评论 ( What Do You Think )
名称
邮箱
网址
评论
验证
   
 

 


  • 微信公众号

  • 我的微信

站点声明:

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

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

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