This is basically a duplicate of https://github.com/spring-projects/spring-framework/issues/16381, but the original issue was bulk closed.
Yaml file
foobar:
ignoredUserIds:
- 57016311
- 22588218
Class
public class Foobar {
@Value("${foobar.ignoredUserIds}")
List<String> ignoredUserIds;
}
Error
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.util.List foobar.Foobar.ignoredUserIds; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'foobar.ignoredUserIds' in string value "${foobar.ignoredUserIds}"
Comment From: snicoll
There's no need to create a duplicate.
Comment From: sergeykad
@snicoll Can you then reopen the original issue?
Comment From: snicoll
There are a number of comments after the issue was closed that we've all seen. If the issue hasn't been reopened, that's because we're not considering implementing this at this time. This may be revisited in the future, in which case the issue will be reopened.