How to Autowire Bean of generic type in Spring?

后端 未结 6 446
盖世英雄少女心
盖世英雄少女心 2020-11-28 03:51

I have a bean Item which is required to be autowired in a @Configuration class.

@Configuration
public class AppConfig {

          


        
6条回答
  •  感动是毒
    2020-11-28 04:35

    Spring 4.0 is the answer with the @Qualifier annotation usage. Hope this helps

提交回复
热议问题