我正在使用Spring Boot及其外部配置功能:https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
在我的应用程序中,我有一个默认配置的 application.properties
文件,如:
my.property=one
other.property=two
在 生产环境 和测试环境中,我使用Spring Boot的外部配置功能来覆盖某些属性 . 据我所知,这个配置概念贯穿整个Spring Boot,几乎所有选项都可以在外部配置 .
这引出了我的问题:
-
如果我有一些属性,我不想公开覆盖怎么办?
-
是否有某种"blacklist"选项,以防止覆盖所选属性的列表?