-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Support for ant wildcards in configuration properties #12993
Comments
@filiphr we're using Spring Framework's property editor for this and I don't think that ant-style patterns are supported so I'd assume that this issue will have to move to the framework. But let's use the opportunity of this issue to figure out what we can do. |
I am not sure what the property editor from Spring Framework is. One thing I know is that when the same expression is used in For example doing: @Value("${dummy.dummy-files}")
private Resource[] resources; Maybe different strategy is used for Thanks for having a look at it. |
Well that's crucial to the report. It means then we have to configure something on the Spring Boot side as |
It is interesting to see that |
Hello, are there any new information about progress ? I miss that feature "ant style path patterns" for configuration properties in my project, too. I use SB 1.5.10 |
@rfelgent There's not been any recent updates to the issue and since it's a relatively low priority nobody is actively working on it. It might be easer to fix this with Spring Boot 2.0 as much of the property binding support was rewritten. Even if we find a fix, I'm afraid we won't be adding this to Spring Boot 1.5.x. |
I think this a duplicate of #15835. Feel free to reopen if it isn't. |
I have the following configuration properties
And then in my
application.properties
When this is done then
DummyProperties#dummyFiles
contains a singleServletContextResource
.If you change the property to
classpath*:/com/example/dummy/single.json
then it works correctly.I asked in the gitter channel and @snicoll said that you don't support this. However, I didn't understand if this is on purpose or it's just not implemented. If it is the first sorry for opening this issue and feel free to close it.
The text was updated successfully, but these errors were encountered: