认真的咸鱼 2021-11-12 10:18 采纳率: 50%
浏览 34

关于springmvc项目使用第三方jar包实现NamespaceHandlerjar包冲突

2021-11-12 10:03:56,498 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/lijiarong/project/sc_generaledition/target/ROOT/WEB-INF/classes/spring-context-jedis.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [com.fr.third.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

Caused by: org.springframework.beans.FatalBeanException: Class [com.fr.third.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

自定义jar实现

img

img

img


原因是因为在spring-beans 这个里面

img

两个类冲突 大家有什么好的解决方案

  • 写回答

1条回答 默认 最新

  • Zht_bs 2021-11-12 16:27
    关注

    maven在导入的时候将冲突的包屏蔽掉

    评论

报告相同问题?

问题事件

  • 创建了问题 11月12日