Is there a PropertyPlaceholderConfigurer-like class for use with Spring that accepts XML?

后端 未结 4 2103
轻奢々
轻奢々 2020-12-30 11:01

Spring has a very handy convenience class called PropertyPlaceholderConfigurer, which takes a standard .properties file and injects values from it into your bean.xml config.

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 11:39

    Found out that Spring Modules provide integration between Spring and Commons Configuration, which has a hierarchial XML configuration style. This ties straight into PropertyPlaceholderConfigurer, which is exactly what I wanted.

提交回复
热议问题