Spring: Make sure a particular bean gets initialized first

后端 未结 4 1111
名媛妹妹
名媛妹妹 2020-11-28 06:14

I have a library doing runtime setup and configuration of log4j (no log4j.properties or log4j.xml). I have defined a bean with class called MyLoggerFactory and I want this t

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 06:34

    This is a feature requested but not resolved. You can use depends-on but is too verbose. Follow tis link for more information: https://jira.springsource.org/browse/SPR-3948

提交回复
热议问题