Java依赖冲突高效解决之道
一 概述
二 依赖冲突产生的本质原因
三 依赖冲突问题高效定位技巧
1 NoClassDefFoundError、ClassNotFoundException排查定位步骤
java.lang.NoClassDefFoundError: Could not initialize class testing.User
at testing.Test.main(Test.java:23)
Caused by: java.lang.RuntimeException: UserId Not found
at testing.User.getUserId(Test.java:41)
at testing.User.<clinit>(Test.java:35)
... 1 more
java.lang.NoClassDefFoundError: org/apache/commons/lang/CharUtils
at testing.Test.main(Test.java:19)
2 NoSuchMethodError排查到位步骤
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.support.DefaultListableBeanFactory.getDependencyComparator()Ljava/util/Comparator;
at org.springframework.context.annotation.AnnotationConfigUtils.registerAnnotationConfigProcessors(AnnotationConfigUtils.java:190)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.registerComponents(ComponentScanBeanDefinitionParser.java:150)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:86)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
四 通过maven调整依赖jar解决依赖冲突
1 升降级jar包解决依赖冲突
2 排除jar包解决依赖冲突
五 通过pandora自定义插件解决依赖冲突
六 通过依赖架构治理解决依赖冲突
1 复杂依赖标准化、简化治理
2 重量级依赖代理服务化
数据分析系统之数据管理与数据仓库
关键词
系统
方法
问题
原因
org.springframework
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。