How to use IDEA to create a web project and publish it to tomcat

How to use IDEA to create a web project and publish it to tomcat

Web Development

1. Overview of web development

•To learn web development, you need to install a web server first and deploy the developed web project in the web server for external access.

There are many WEB servers, popular ones include Tomcat, WebSphere, WebLogic, Jboss, etc.

In small application systems or systems with special needs, you can use a free Web server:
Apache's Tomcat, which supports all JSP and Servlet specifications.

Tomcat installation and configuration

Tomcat official website: http://tomcat.apache.org

Get the Tomcat installation package

– The tar.gz file is the installation version for Linux operating system

– The zip file is a compressed version for Windows

insert image description here

Install Tomcat

–Unzip the tomcat compressed file

Install JDK (Click here for JDK installation tutorial)

– Set the JAVA_HOME environment variable

– Set the PATH environment variable

2. Web development environment construction

insert image description here
insert image description here
insert image description here

Start the server and check whether the installation is successful

insert image description here

insert image description here

3. Create and publish web projects

1. Create a Java project

2. Add web

insert image description here

insert image description here

This way there is an extra web folder to store HTML files

insert image description here

3. Configure tomcat to automatically publish web files

insert image description here

insert image description here

insert image description here

insert image description here

4. After clicking Apply, write hello world in index.jsp and start

insert image description here

5. Success

insert image description here

This is the end of this article about how to use IDEA to create a Web project and publish it to Tomcat. For more information about how to use IDEA to create a Web project and publish it to Tomcat, 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:
  • Teach you how to import a Web project (non-Maven) created in Eclipse into Idea
  • Teach you how to create a Javaweb project in IDEA2020.3
  • Detailed explanation of the process of deploying Tomcat and creating the first web project in IDEA 2020.3.1
  • About idea updated to 2020.2.3 can not create a web project reason library is not specified
  • IDEA2020.1.2 Detailed tutorial on creating a web project and configuring Tomcat
  • Idea2020.2 Detailed explanation of how to create a JavaWeb project (deploy Tomcat)
  • idea2020.1.3 teaches you how to create a web project step by step
  • Detailed graphic explanation of the process of deploying the created Java web project to Tomcat in idea
  • IntelliJ IDEA2019 implements Web project creation example
  • Graphical steps to create a Maven web project with IntelliJ IDEA (for IDEA novices)
  • The solution of MavenWeb project in idea cannot create Servlet
  • Steps to create the first dynamic web project in IntelliJ IDEA
  • Idea2019 method steps to create a Springboot Web project
  • Graphic tutorial on creating a Java Web project and deploying it using IDEA
  • The new version of IntelliJ IDEA builds Maven and creates a web project with Maven (graphic tutorial)
  • Create a Java Web Project with IntelliJ IDEA 15 and Maven (Graphics)
  • Teach you how to create a web project with idea

<<:  Background image cache under IE6

>>:  ElementUI implements cascading selector

Recommend

Detailed explanation of uniapp painless token refresh method

When the front-end requests the interface, it is ...

Zen Coding Easy and fast HTML writing

Zen Coding It is a text editor plugin. In a text ...

30 Tips for Writing HTML Code

1. Always close HTML tags In the source code of p...

A brief discussion on several ways to pass parameters in react routing

The first parameter passing method is dynamic rou...

Docker deploys nginx and mounts folders and file operations

During this period of time, I was studying docker...

A complete list of commonly used Linux commands (recommended collection)

Table of contents 1. System Information 2. Shutdo...

How to remove the dividing line of a web page table

<br />How to remove the dividing lines of a ...

Examples of common Nginx misconfigurations

Table of contents Missing root location Off-By-Sl...

VMware, nmap, burpsuite installation tutorial

Table of contents VMware BurpSuite 1. Virtual mac...

The images in HTML are directly replaced by base64 encoded strings

Recently, I came across a webpage that had images ...

A solution to the abnormal exit of Tomcat caused by semaphore

I'm playing with big data recently. A friend ...

Analysis of basic usage of ul and li

Navigation, small amount of data table, centered &...

JavaScript macrotasks and microtasks

Macrotasks and Microtasks JavaScript is a single-...

MySQL database must know sql statements (enhanced version)

This is an enhanced version. The questions and SQ...