Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed description of IntelliJ IDEA Tomcat configuration (picture and text)

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Find the problem of children's shoes I believe that the download of IntelliJ IDEA,Tomcat, JDK and other configurations should be completed, then I directly get to the point.

1 > enter Edit Configurations

2 > Click + to select Tomcat server, and select Local if it is a local Tomcat

3 > Tomcat Server-> Unnamed-> Server-> Application server's Configuration, locate the local Tomcat server, and then click the OK button

4 >

As shown in 1, we can switch different containers for the project at any time

As shown in 2, we can specify that the VM parameter be set for the running container

As shown in 3, these are the events triggered under the two commands. This is unique to IntelliJ IDEA and is also the key On Update action. When we press Ctrl + F10 to update the container, we can update the container according to the event content we configured. The Update classes and resources event I chose is the most commonly used, indicating that when we press Ctrl + F10 to update the container, we trigger the update of compiled classes and resource files to the container. In Debug mode, this is also known as HotSwap. This is that this hot deployment is not as easy as the JRebel plug-in On frame deactivation when we switch IntelliJ IDEA to the browser to update the specified event, this is generally because when Web development, we often need to switch back and forth between IntelliJ IDEA and various browsers, so we have this requirement. The purpose of IntelliJ IDEA is to help us do something specific when doing this boring switch. Of course, if you switch too frequently, this feature is still very resource-consuming, so I set Do nothing to mean to do nothing when switching.

As shown in 4, the default HTTP port of Tomcat is 8080. If you need to change its port, you can set it here.

As shown in 5, this knowledge point has been mentioned in the previous article. This indicates what to do before the Tomcat container runs, respectively: Make and Build Artifacts operations. As demonstrated by Gif above, the Build Artifacts here appears automatically after we add Artifact to the Deployment tab.

5 > enter the deployment interface again

6 > Click + in Deployment to select the project to be deployed

7 > fill in the access path and click OK

8 > you can see the deployed project in Application Servers in the main interface. Click Run/Connect to run the Tomcat server.

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report