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

Use of js optional chaining operator

Preface The optional chaining operator (?.) allow...

VMware + Ubuntu18.04 Graphic Tutorial on Building Hadoop Cluster Environment

Table of contents Preface VMware clone virtual ma...

Complete steps for using Nginx+Tomcat for load balancing under Windows

Preface Today, Prince will talk to you about the ...

A record of pitfalls in JS regular matching

I recently discovered a pitfall in regular expres...

Use CSS's clip-path property to display irregular graphics

clip-path CSS properties use clipping to create t...

Learn Node.js from scratch

Table of contents url module 1.parse method 2. fo...

Detailed explanation of MySQL group sorting to find the top N

MySQL group sorting to find the top N Table Struc...

MySQL 1130 exception, unable to log in remotely solution

Table of contents question: 1. Enable remote logi...

Implementation of dynamic rem for mobile layout

Dynamic rem 1. First, let’s introduce the current...

Summary of related functions for Mysql query JSON results

The JSON format field is a new attribute added in...

How to purchase and install Alibaba Cloud servers

1. Purchase a server In the example, the server p...

Summary of MySQL composite indexes

Table of contents 1. Background 2. Understanding ...

Limiting the number of short-term accesses to a certain IP based on Nginx

How to set a limit on the number of visits to a c...

Detailed explanation of DOM style setting in four react components

1. Inline styles To add inline styles to the virt...