Printing all properties set via Spring PropertyPlaceholderConfigurer

后端 未结 3 2081
执念已碎
执念已碎 2021-02-14 09:08

I’d like to print the consolidated list of properties set in our application on startup. What is the best way to do this?

Thanks

3条回答
  •  春和景丽
    2021-02-14 09:38

    Use a custom PropertyPlaceholderConfigurer implementation that overrides the resolve... methods and logs the placeholder name. You may also need/want to override the convert... methods, but resolve... should handle it.

提交回复
热议问题