惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

博客园 - MvloveYouForever

flutter重新学习 uniapp简单移动端H5电脑端适配方案 添加ssh后,ssh-rsa fatal: Could not read git合并提交 cordova打印插件备注 H5开发类似rpx实现方法 maven仓库地址 idea与其他软件激活办法 linux常用命令总结 Command line is too long mysql安装教程备份 mybatis-plus 条件参数说明 关于打包electron应用 关于spring unicloud短信不能用 关于mybatis vue2 和 vue3的区别 父子组件v-modle,vue2和vue3的区别 Vue3知识点
关于maven
MvloveYouForever · 2024-09-02 · via 博客园 - MvloveYouForever

1、依赖范围

①  complie 默认范围,编译和运行时失效,打包的时候也会打包。

②  provided 编译和测试有效、运行时无效,打包不打包。

③ runtime 编译不生效、运行生效。

④  test  编译和运行测试有效。实际运行不生效。

2、依赖冲突调解

①  第一原则:最短路径原则

②  第二原则:最先声明原则

③  排除依赖: 手动排除依赖

    锁定版本

   增加 <dependencyManagement>

 3、父子工程

1、创建一个maven工程,创建时不选择模版

父工程dom.xml

 配置tomcat插件

搭建子工程(模块)

 搭建第二个子工程,并依赖Dao

 创建controller工程,需要导入web工程模版

  注:父工程有的依赖,子工程中都删除

 运行工程,直接运行父工程

 添加运行方式maven,选择运行目录为:父工程。命令:tomcat7:run

4、maven父子工程依赖失效: 

 遇到依赖失效,直接再引一次就好。