The content of element type "beans" must match "(description?,(import|alias|bean)*)
2014-07-08 18:57
1991 查看
The content of element type "beans" must match "(description?,(import|alias|bean)*)
-------------------------------------------------
解决方案:
版本问题,xml修改成这样就可以了,亲测
<?xml version="1.0" encoding="UTF-8" ?>
<!--
必须配置一下属性productName,productCode,price,stockQty,buyCount
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" default-lazy-init="true">
-------------------------------------------------
解决方案:
版本问题,xml修改成这样就可以了,亲测
<?xml version="1.0" encoding="UTF-8" ?>
<!--
必须配置一下属性productName,productCode,price,stockQty,buyCount
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" default-lazy-init="true">
相关文章推荐
- 完全解决struts启动时报错:The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-for
- The content of element type "struts-config" must match "(display-name?,description?,data-sources?,fo
- The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- Java大牛养成记(5)——The content of element type "struts" must match "(package|include|bean|constant)*".
- The content of element type "web-app" must match "(icon?,display- name?,description?...)
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?,
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "struts" must match "(package|include|bean|constant)*".
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The contenTht of element type "package" must match "(result-types?,interceptors?,default-intercept .
- 解决The content of element type "web-app" must match "(icon?,display
- The content of element type "struts-config" must match "(data-sources?,form-
- hibernate The content of element type "session-factory" must match "(property*,mapping*,(class-cache
- The content of element type "package" must match "(result-types?,interceptors?...
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "struts-config" must match "(display-name?,descripti .