当前位置:网站首页>创建Servlet项目
创建Servlet项目
2022-06-12 11:45:00 【蛊惑one】
1.通过模板创建

2.配置Maven环境

3. 补齐必要的包

4.将web.xml修改成最新版
<?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.加载包
- 删除不必要的部分,留下如下部分

2.导入servelet和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.检查包是否导入成功
6.编写代码

7. 注册

8.配置Tomcat


边栏推荐
- Blue Bridge Cup 2015 CA provincial competition (filling the pit)
- 影响店铺权重的三十一条,快来看看中招了吗
- ioremap
- [Blue Bridge Cup SCM 11th National race]
- 淘宝新改版商家如何操作,需要注意的点有哪些
- Face recognition PIP failed to install Dlib Library
- ARM指令集之乘法指令
- [cf1392d] D. Omkar and bed Wars
- TinyMCE series (IV) introduction to common built-in UI components of TinyMCE
- The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
猜你喜欢

Logrotate log rotation method create and copyruncate principles

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

5g NR protocol learning -- ts38.211 downlink channel

PDSCH related

Doris records service interface calls

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

字节序 - 如何判断大端小端

QML学习 第二天

TinyMCE series (I) TinyMCE environment construction

Who moved my package lock
随机推荐
ARM指令集之批量Load/Store指令
人类想要拥有金钱、权力、美丽、永生、幸福……但海龟只想做一只海龟
Architecture training module 7
【QNX Hypervisor 2.2 用户手册】4.1 构建QNX Hypervisor系统的方法
Manuscript manuscript format preparation
ARM处理器模式与寄存器
視頻分類的類間和類內關系——正則化
Arm cross compilation chain download address
The first thing with a server
Unit test case framework --unittest
ARM指令集之数据处理指令寻址方式
ioremap
Shardingjdbc-5.1.0 monthly horizontal table splitting + read-write separation, automatic table creation and node table refresh
First understand the onion model, analyze the implementation process of middleware, and analyze the source code of KOA Middleware
QML学习 第二天
【深度学习基础】神经网络的学习(4)
B.刷墙(C语言)
6.6 分离卷积
K52. Chapter 1: installing kubernetes v1.22 based on kubeadm -- cluster deployment
Doris records service interface calls