I don't know from which version comme this feature, but I am using currently spring-boot 3.3.4 and it works yet simple with List and comma separated value:
ignore.filenames: name1, name2
@Value("${ignore.filenames}")
private List<String> sampleListValues;