I want to read a list of hosts from a yaml file (application.yml), the file looks like this:
cors: hosts: allow: - http://foo1/
use comma separated values in application.yml
corsHostsAllow: http://foo1/, http://foo2/, http://foo3/
java code for access
@Value("${corsHostsAllow}") String[] corsHostsAllow
I tried and succeeded ;)