Spring can't autowire Map bean

前端 未结 3 1741
无人及你
无人及你 2020-11-29 02:03

I\'ve defined a map in spring as such:



        
3条回答
  •  心在旅途
    2020-11-29 02:53

    Seems like your @Qualifier(value = "AdditionalParams") is not working.

    Try using the map by following annotation :

    @Resource
    private Properties AdditionalParams;
    

    and keeping your applicationContext.xml file intact.

提交回复
热议问题