当前位置:网站首页>27-31. Dependency transitivity, principle

27-31. Dependency transitivity, principle

2022-07-04 06:15:00 ptyzsjh

27、 Transitivity of dependency

Directly dependent on

Passed dependencies

benefits

 Transitive dependencies , There is no need to synchronously declare in each module project , Just rely on it once in the lowest project .

Be careful

 Not compile The dependency of a scope cannot be passed 

28、 The exclusion of dependence

situation

 Insert picture description here

Specific operation

 Insert picture description here

29、 Description of the principle of dependence

effect

Solve the problem between module engineering jar Package conflict issues

principle

1、 The shortest path is preferred

2、 Another situation , The path is the same

First declaration first

namely dependency The order in which labels are declared

30、 Dependency principle test

31、 Unified management depends on version number

原网站

版权声明
本文为[ptyzsjh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141614128067.html