A schema cannot contains two global components with the same name

来源:互联网 发布:数控编程视频教学 编辑:程序博客网 时间:2024/04/29 13:57

问题描述:

                 在spring+mongodb项目中的applicationContext.xml中有报警,在Problems视图中查到的详情是:A schema cannot contains two global components with the same name;this schema  contains two occurences of 'http://www.springframework.org/schema/context,propertyPlaceholder '  等。

               我在applicationContext.xml中引入的schema为


解决:

在网上找了StackOverFlow上的一篇文章是把  context这个命名空间所指的xsd文件去掉版本号。




0 0