打印通过Spring PropertyPlaceholderConfigurer设置的所有属性 [英] Printing all properties set via Spring PropertyPlaceholderConfigurer

查看:117
本文介绍了打印通过Spring PropertyPlaceholderConfigurer设置的所有属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在启动时打印在我们的应用程序中设置的属性的合并列表.最好的方法是什么?

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

谢谢

推荐答案

使用自定义

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.

这篇关于打印通过Spring PropertyPlaceholderConfigurer设置的所有属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆