【问题标题】:Description Resource Path Location Type cvc-complex-type.2.4说明 资源路径位置类型 cvc-complex-type.2.4
【发布时间】:2015-06-22 17:35:30
【问题描述】:

嘿伙计们,当我在 applicationContext.xml 中编写标签时出现错误“描述资源路径位置类型 cvc-complex-type.2.4.a:从 Eclipse 中发现以元素“属性”开头的无效内容我不知道为什么。

这是 applicationConext.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans   
http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="dao" class="org.gestion.bp.dao.BanqueDaoImp"></bean>
<bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp"></bean>
    <property name="dao" ref="dao"></property>
</beans>

【问题讨论】:

    标签: eclipse spring maven jakarta-ee


    【解决方案1】:

    这里:

    <bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp"></bean>
        <property name="dao" ref="dao"></property>
    </beans>
    

    您已经用&lt;/bean&gt; 属性之前关闭了“bean”。应该是:

    <bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp">
        <property name="dao" ref="dao"></property>
    </bean>
    </beans> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-23
      • 2023-03-09
      • 1970-01-01
      相关资源
      最近更新 更多