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

How to configure tomcat using IDEA and how to create a JSP file

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

Share

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

This article mainly explains the use of IDEA to configure tomcat and how to create JSP files, the content is clear, interested partners can learn, I believe it will be helpful after reading.

Before using idea to write JSP files, you need to configure the jdk environment (not discussed here) and the corresponding tomcat. The editor uses IDEA 2017.1.2 and jdk 1.8.Configuring the tomcat environment needs to correspond to the jdk version.

No.1

Download tomcat

First of all, let's go to the official website http://tomcat.apache.org and click "Which version?" Looking at the corresponding version, we can see that jdk1.8 needs tomcat9.0 or above to be compatible, and there will be all kinds of problems in writing Web after the version mismatch.

Click directly on the left Tomcat 9.0, Xiaobian's computer is 64-bit, we choose according to their own computer configuration, pay attention to the best choice of compressed package, decompression can be used, install the package but also their own installation, a bit of trouble.

No.2

Create a Web project

File name, whatever.

No.3

Create a JSP file

Created successfully.

Next, you need to configure tomcat, otherwise this will happen.

No.4

Configure tomcat

Select the path where you just downloaded the extracted Tomcat9.0 on the Tomcat official website.

It's best to click After launch. When you first do it, you want to try what happens after you check it, that is, every time you run tomcat, a new tab appears in the browser, so it's better to click it.

No.5

Configure artifacts

Click the plus sign, if the previous tomcat is not configured, there is no Tomcat Server here.

After clicking Local, Tomcat Server appears on the Defaults, and the name is chosen at random.

Click Development-- "+"-- Artifact...

And then it runs successfully.

After reading the above content, do you have a further understanding of how to configure tomcat using IDEA and how to create JSP files? if you want to learn more, please 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