本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- gengyun12
- hbxflihua
- e_e
- luxurioust
- dbagirl
- zysnba
- robotmen
- Alsmile
- gaozzsoft
- jywhltj
- cpongo1
- leslie26
- qepwqnp
- 解宜然
- cuityang
- gashero
- sichunli_030
- fantaxy025025
- zhangdaiscott
- vipbooks
- wallimn
- gdpglc
- ssydxa219
- ranbuijj
- javashop
- jickcai
- hanbaohong
- johnsmith9th
- appalese
- gaojingsong
- weiyides
- 淡看人生
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- xpenxpen
- liunancun
- 龙哥IT
- conkeyn
- nychen2000
- ouanui
- silverend
- lemonhandsome
- jveqi
最新文章列表
【Problem】Maven类冲突原因
Maven类冲突可能的原因:
1. 完全相同的类存在多个版本(间接依赖),如xx.jar.1.1, xx.jar.1.2类似这种,两个版本中存在问题,需要使用依赖仲裁依赖指定具体版本;不过这种情况基本不会出现,因为maven会对groupId,artifactId相同的不同版本的jar包会自己进行仲裁,取其中一个;
2. groupId或者artifactId不同,但是实际上是同一个jar。 ...
Jar hell问题诊断
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
String reosurceName = "xxxx.class";
Enumeration<URL> urls = classLoader.getResources(reosurceName);
while ...