【发布时间】:2020-08-01 08:50:05
【问题描述】:
如果在application.properties 中定义的属性@property.absent@ 不能扩展(在pom.xml 中没有定义),则绑定值是文字@property.absent@。有没有一种简单的方法可以用自定义默认值(例如 null)覆盖它,尤其是。与@ConfigurationProperties一起自动配置?
【问题讨论】:
标签: spring maven properties pom.xml configurationproperties