当前位置:网站首页>Create servlet project
Create servlet project
2022-06-12 11:53:00 【Bewitch one】
1. Create from a template

2. To configure Maven Environmental Science

3. Complete necessary packages

4. take web.xml Revised to the latest version
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0" metadata-complete="true">
</web-app>
5. Load package
- Delete unnecessary parts , Leave the following

2. Import servelet and jsp
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
3. Check whether the package is imported successfully 
6. Write code

7. register

8. To configure Tomcat


边栏推荐
猜你喜欢

多普勒效应的基本原理

ARM处理器模式与寄存器

Relatively rare exception records in UI automation test

Lambda and filter, index of list and numpy array, as well as various distance metrics, concatenated array and distinction between axis=0 and axis=1

Node crawler puppeter usage

Network topology

TinyMCE realizes automatic uploading of pasted pictures

PIP install in the CONDA environment cannot be installed into the specified CONDA environment (the default PIP installation location of the CONDA environment)

UML series articles (30) architecture modeling -- product diagram

套接字实现 TCP 通信流程
随机推荐
必杀技--使用FFmpeg命令快速精准剪切视频
Channel Shuffle类
机器学习之线性模型
Naming specification / annotation specification / logical specification
UML series articles (30) architecture modeling -- product diagram
视频分类的类间和类内关系——正则化
C# 35. Select default network card
Data processing instructions of arm instruction set
ARM指令集之Load/Store指令寻址方式(二)
Promise controls the number of concurrent requests
The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
Byte order - how to judge the big end and the small end
QML学习 第二天
ARM指令集之伪指令
[Blue Bridge Cup SCM 11th National race]
Blue Bridge Cup 2015 CA provincial competition (filling the pit)
Load/store memory access instruction of arm instruction set (1)
Design of virtual scrolling list
Video JS library uses custom components
Miscellaneous instructions of arm instruction set