Before using idea to write JSP files, you need to configure the jdk environment (not described here) and the corresponding tomcat. The editor here uses IDEA 2017.1.2 version, jdk is 1.8, and the configuration of tomcat environment needs to correspond to the jdk version. No.1 Download tomcat First, we go to the official website http://tomcat.apache.org and click "Which version?" to view the corresponding version. We can see that jdk1.8 requires tomcat9.0 and above to be compatible. If the versions do not match, various problems will occur when writing Web. Directly click on Tomcat 9.0 on the left. The editor's computer is 64-bit. You can choose according to your computer configuration. Note that it is best to choose a compressed package, which can be used after decompression. The installation package needs to be installed by yourself, which is a bit troublesome. No.2 Creating a Web Project The file name is arbitrary. No.3 Creating JSP Files Created successfully. Next you need to configure tomcat, otherwise the following situation will occur. No.4 Configure tomcat Select the path of Tomcat 9.0 that you just downloaded and unzipped from the Tomcat official website. It is best to uncheck After launch. When I first started, I wanted to try what would happen after checking it. Every time I ran tomcat, a new tab would appear in the browser, so it is better to uncheck it. No.5 Configuring artifacts Click the plus sign. If the previous tomcat was not configured properly, there will be no Tomcat Server here. After clicking Local, Tomcat Server will appear on Defaults, and the name is whatever you want. Click Development -> "+" -> Artifact... Then it runs successfully~ Summarize This is the end of this article about using IDEA to configure tomcat and create JSP files. For more information about how to use IDEA to configure tomcat to create JSP files, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
>>: Vue uses rules to implement form field validation
Preface I believe everyone is familiar with addin...
During the Olympic Games, IE 8 Beta 2 will be rele...
Table of contents APIs used Simple Example person...
Table of contents 1. Prerequisites 1.1 Supported ...
Table of contents 1. MHA 1. Concept 2. Compositio...
Preface We may have heard of the concept of rowid...
background Since I was assigned to a new project ...
When the created tab label exceeds the visible ar...
I chose node.js to build the server. Friends who ...
Use the mysql command to connect to the MySQL ser...
Table of contents 1. Install Docker 2. Install so...
<br />Related articles: Web skills: Multiple...
This article shares the specific code of vue unia...
js interesting countdown case, for your reference...
Mac comes with Apache environment Open Terminal a...