Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Value support for comma-delimited paths into Path array [SPR-17221] #21754

Open
spring-issuemaster opened this issue Aug 28, 2018 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Aug 28, 2018

Michael Osipov opened SPR-17221 and commented

Consider the following properties file:

repo.git.snippets.excludes=.git,.gitignore,snippets.ini,README.md

I cannot simply say:

@Value("${repo.git.snippets.excludes}")
private Path[] snippetsExcludes;

An array of one element is inject. If I say:

@Value("${repo.git.snippets.excludes}")
private String[] snippetsExcludes_;

It seems like the splitter along with the editors do only work on strings.

See also screenshot from debugger.


Affects: 5.0.8

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.