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

Sample analysis of Tomcat downloading, installing and deploying to IDEA

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you the "Tomcat download installation and deployment to IDEA sample analysis", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "Tomcat download, installation and deployment to IDEA sample analysis" this article.

Download tutorials for Tomcat

In fact, the download thief is simple, as for why to add the word tutorials ~ because it is easy to listen to ~

Official website address-Click to enter http://tomcat.apache.org/

Tomcat installation tutorial

Decompress it and install over, but the decompression path had better not be disk C, there may be various strange problems such as denial of access, and the decompression path does not have Chinese and special characters, remember!

Tomcat hot deployment to IDEA

The intellij idea default file is saved automatically, but hot deployment is required when you have a project jsp file on hand that cannot immediately respond to changes in tomcat.

Look over: if you feel annoyed, you can not look at the following long text ~ when I am putting the picture, directly according to the picture operation is also a complete OK drop!

In the configuration of server in idea tomcat, there is an on frame deactivation and select update classes and resources. There is also a configuration on update action, that is, what action to take when manual operation, you can restart the server, you can also update classes and resource files as above, I chose Redeploy. However, the current project does not have the option of update classes and resources, there is a Hot Swap classes. This is due to the problem of the type of Artifact added by the server. Generally speaking, one module corresponds to two types of Artifact, one is war and the other is war explored. War is released as a war package, and the current project is in this form, in which there is no update classes and resources option for on frame deactivation configuration. War explored is the directory for publishing files. Choose this form and the update classes and resources option appears in on frame deactivation. The specific operations are as follows:

At this point, Tomcat is hot deployed on idea, over~

Two hot deployment setup methods for idea

The second method: add corresponding dependencies to pom.xml (not recommended). As for why it is not recommended because developers do not have so much free time to pay attention to the introduction of hot deployment coordinate dependencies, it is better to configure them directly on idea. The specific operation is similar to going down.

Org.springframework.boot spring-boot-devtools runtime true above is all the content of the article "sample Analysis of Tomcat download, installation and deployment to IDEA". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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