title: Spring filter beans based on annotation ignoring property values
body: <p>Here is a simple example:</p>
  <pre><code>@Retention(RetentionPolicy.RUNTIME)
  @Qualifier
  public @interface Type {
      public String name();
  }
  
  
  @Configuration
  public class Configuration {
      @Bean
      @Type(name = &quot;type1&quot;)
      public String getType1() {...}
  
      @Bean
      @Type(name = &quot;type2&quot;)
      public String getType2() {...}
  
      ...
      
      @Bean
      @Type(name = &quot;typeN&quot;)
      public String getTypeN() {...}
  }
  
  
  public class Test {
  
      @Autowired
      @Type // Here I'm asked to specify a name, but I want to get all the beans with @Type annotation regardless of the name property.
      private List&lt;String&gt; types;
  }
  </code></pre>
  <p>As mentioned in the comment, I want to find all the beans with annotation @Type regardless of the name property. How can achieve it?</p>