报告 <bean> 属性的配置冲突。

示例:


  <beans>
    <bean class="java.lang.String" factory-bean="factoryBean"/>
    <!-- 仅需 'class' 或 'factory-bean' -->
    <bean factory-bean="factoryBean" id="missingFactoryMethod"/> //当 factory-bean 存在时,需要 factory-method

    <bean abstract="false" id="superfluousDefaultAttributeAbstract"/>

    <!-- 具有默认值 ‘false’ 的特性 abstract 是多余的 -->/
    <bean id="superfluousDefaultAttributeScope" scope="singleton"/>

    <!-- 具有默认值 'singleton' 的特性范围是多余的 -->/
    <bean class="java.lang.StringBuilder">
      <property name="length">
         <bean id="beanId" // Attribute id is superfluous
              name="beanName"   // Attribute name is superfluous
              scope="prototype" // Attribute scope is superfluous
         />
      </property>
    </bean>
  </beans>