title: spring: how to omit bean-name in a list?
body: <p>Do I have to give ids to the elements of a list of Bars ?</p>
  
  <pre><code>&lt;list value-type="foo.Bar"&gt;
    &lt;bean p:p1="someP1Value" p:p2="aP2Value" /&gt;
  &lt;/list&gt;
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
  Configuration problem: Unnamed bean definition specifies neither 'class' nor 'parent' 
  nor 'factory-bean' - can't generate bean name
  </code></pre>
  
  <p>for this.</p>
  
  <p>How can I omit the bean ids?</p>