this is my declaration of the bean
@Bean
public Set<Long> getIds(){
return new HashSet<Long>();
}
and this is how i use and autowired it.
@Autowired
@Qualifier("getIds")
private Set<Long> listIds;
somehow it just wont create the bean and eventually raise a there is no qualifying bean. but if I change the datatype to String it works just fine. I wonder what is wrong with my code.