Вот как значение определяется в файле YAML:
Код: Выделить всё
my-property: null
Код: Выделить всё
@Value("${my-property}")
private String myProperty;
Подробнее здесь: https://stackoverflow.com/questions/649 ... erty-value
Код: Выделить всё
my-property: null
Код: Выделить всё
@Value("${my-property}")
private String myProperty;