A schema cannot contains two global components with the same name
2015-02-03 18:41
513 查看
问题描述:
在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为
![](https://oscdn.geek-share.com/Uploads/Images/Content/201911/04/cac66796dc713bbd1354118105bc6e44)
解决:
在网上找了StackOverFlow上的一篇文章是把 context这个命名空间所指的xsd文件去掉版本号。
![](https://oscdn.geek-share.com/Uploads/Images/Content/201911/04/610d231495c996c0b4f2749c0cf90d03)
在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文件去掉版本号。
相关文章推荐
- Skipping URI variable 'ID' since the request contains a bind value with the same name
- 遇到的问题-----The project contains another dependency with the same archive name
- The project contains another dependency with the same archive name.
- The filename 未命名.ipa in the package contains an invalid character(s). The valid characters are: A-Z, a-z, 0-9, dash, period, underscore, but the name cannot start with a dash, period, or underscore
- Two components with the same id AJAX error
- Fix: "Sys.InvalidOperationException: Two components with the same id
- 遇到的问题-----The project contains another dependency with the same archive name
- Common Schema Error: a TypeName that collides with the root node name
- 项目管理:Redmine安装错误You cannot specify the same gem twice with different version
- Cannot configure two CRS instances on the same cluster
- Two classes have the same XML type name 排错【转】
- subroutine has the same name with build_in functions
- WCF分布式开发常见错误解决(7):System.InvalidOperationException,Cannot have two operations in the same contract
- This Vuser already started a transaction with the same name...解决方法
- Can we access global variable if there is a local variable with same name?
- cannot expose session attribute '_from_source' because of an existing model object of the same name
- JAXB “Class has two properties of the same name” issue
- ERROR: pdfTeX warning (ext4): destination with the same identifier (name{figure.1})
- C#使用xml文档作为数据源 Name cannot begin with the ' ' character, hexadecimal value 0x20
- WebService 报3 counts of IllegalAnnotationExceptionsClass has two properties of the same name "entries"