当前位置:网站首页>Why does the servlet of POM in the web rely on scope as provided
Why does the servlet of POM in the web rely on scope as provided
2022-07-22 10:49:00 【Hua Weiyun】
Why? web in pom Of servlet rely on scope by provided
<dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> </dependencies>
provided The function of is to work when compiling , It doesn't work when running .
In our Tomcat It also comes with its own servlet-api.jar. If you don't set it like this , At startup, it will conflict with the built-in dependency .
Use idea establish servlet
The premise is that we install the dependencies required by the above project . Then we create .
This is created , This is the default template , Of course, we can also make changes .
Open here first
We can modify the default template here .
But I am used to writing by myself . To put it briefly .
边栏推荐
- Seven best ways to overcome procrastination
- Kingbasees Security Guide for Jincang database -- 3.1 user management
- How to do the interface test in JSON format?
- 优必选科技眼中的AI机器人时代
- 史上最全的mysql数据类型汇总(下)
- 2022-7-21 第七组 pan小堂 继承与super与this
- Energy principle and variational method note 02: variational problems variational and differential operations can exchange ordered Euler equations
- Summary of five methods of window function
- 反弹shell通过普通用户进行SUID提权
- [ERR] 1273 - Unknown collation: ‘utf8mb4_0900_ai_ci‘
猜你喜欢
Live broadcast preview | new design ideas and production methods brought by NFT, aigc/ugc tools and metauniverse products
走出心理舒适区的七个最佳方法
ProCAST 2021反算教程
A new colleague from the company made typora perfect! Too tough
MongoDB的基本操作介绍、数据库/表的创建和删除、数据的查询
【活动报名】给你的代码叠个 Buff!点击“茶”收好礼
Energy principle and variational method note 01: a brief introduction to three analysis methods
814. Binary tree pruning
[cicadaplayer] vs2019 (v142) x64 ffmepg: error c2169: "lrintf": internal function, cannot be defined
linux如何查询oracle错误日志
随机推荐
Encapsulation
Reproduce pytorch version from zero (3)
Adroid APP测试方案
[wechat applet developer tool] × # initialize-error: Error: ENOENT: no such file or directory, open
cs224w(图机器学习)2021冬季课程学习笔记4
BigInteger :new BigInteger(tokenJson.getBytes()).toString(16)什么意思
day02-2
2022-7-21 第七组 pan小堂 继承与super与this
2022 latest Hubei construction eight members (Mechanics) simulated examination question bank and answers
11 classification maintenance of commodity system in gulimall background management
企业源代码防泄密工作该如何开展
如何高效Debug(又名如何高效解决问题)
Response响应字节数据
Halcon series (2): hyperboxes
[814. Binary tree pruning]
Set elastic box justify content: space between does not take effect
Request 和Response 说明
El table column nested El table column, horizontal scrolling bug of multi-level header
2022-7-21 the seventh group of Pan Xiaotang inheritance and super and this
Dof景深基础