spring boot $ {}无法在属性文件中解析?

时间:2019-01-13 03:36:40

标签: spring-boot

spring boot 1.5.15 $ {xxxx}无法解析为属性文件中的实际值, 我试图设置自定义参数($ {domain})和自包含变量($ {random.value}),但它们都无法解析, 这是我的Spring Boot属性文件中的代码:

domain=aaa
config.notifyBaseUrl=test ${domain}/notify/${random.value}-${spring.profiles.active}

我的预期结果是可以将'$ {domain}','$ {random.value}','$ {spring.profiles.active}'解析为实际值,但实际上不能解析为'$ {domain }”仍然是“ $ {domain}”而不是“ aaa”。 我不知道为什么

0 个答案:

没有答案
相关问题